src/library/ThreemaGateway/Tfa/Conventional.php 1 location
|
@@ 88-92 (lines=5) @@
|
| 85 |
|
$providerData['secretGenerated'] = XenForo_Application::$time; |
| 86 |
|
|
| 87 |
|
//secret is only valid for some time |
| 88 |
|
if ($context == 'setup') { |
| 89 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_conventional_validation_setup * 60; //default: 10 minutes |
| 90 |
|
} else { |
| 91 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_conventional_validation * 60; //default: 3 minutes |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
// add options |
| 95 |
|
if ($providerData['useNumberSmilies']) { |
src/library/ThreemaGateway/Tfa/Fast.php 1 location
|
@@ 74-78 (lines=5) @@
|
| 71 |
|
$options = XenForo_Application::getOptions(); |
| 72 |
|
|
| 73 |
|
//message is only valid for some time |
| 74 |
|
if ($context == 'setup') { |
| 75 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_fast_validation_setup * 60; //default: 10 minutes |
| 76 |
|
} else { |
| 77 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_fast_validation * 60; //default: 3 minutes |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
// temporarily save IP, which triggered this |
| 81 |
|
$providerData['triggerIp'] = $userIp; |
src/library/ThreemaGateway/Tfa/Reversed.php 1 location
|
@@ 98-102 (lines=5) @@
|
| 95 |
|
$providerData['secretGenerated'] = XenForo_Application::$time; |
| 96 |
|
|
| 97 |
|
//secret is only valid for some time |
| 98 |
|
if ($context == 'setup') { |
| 99 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_reversed_validation_setup * 60; //default: 10 minutes |
| 100 |
|
} else { |
| 101 |
|
$providerData['validationTime'] = $options->threema_gateway_tfa_reversed_validation * 60; //default: 3 minutes |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
// most importantly register message request for Threema callback |
| 105 |
|
$this->registerPendingConfirmationMessage( |