GX-Bug #70050 » refs_#70050__fixed_TypeError_when_using_2fa_and_verifying_the_code.patch
| src/GXModules/Gambio/TwoFactorAuth/Admin/Classes/Services/TwoFactorAuthReadService.inc.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 | |
| 3 | 3 |
/* -------------------------------------------------------------- |
| 4 |
TwoFactorAuthReadService.inc.php 2018-02-23
|
|
| 4 |
TwoFactorAuthReadService.inc.php 2022-10-24
|
|
| 5 | 5 |
Gambio GmbH |
| 6 | 6 |
http://www.gambio.de |
| 7 |
Copyright (c) 2017 Gambio GmbH
|
|
| 7 |
Copyright (c) 2022 Gambio GmbH
|
|
| 8 | 8 |
Released under the GNU General Public License (Version 2) |
| 9 | 9 |
[http://www.gnu.org/licenses/gpl-2.0.html] |
| 10 | 10 |
-------------------------------------------------------------- |
| ... | ... | |
| 88 | 88 |
|
| 89 | 89 |
return (new TwoFactorAuthAuthenticator())->verifyCode($secret->code(), |
| 90 | 90 |
$token->code(), |
| 91 |
$this->toleratedDelay); |
|
| 91 |
$this->toleratedDelay->asInt());
|
|
| 92 | 92 |
} catch (AuthConfigurationStorageEntryNotFoundException $exception) {
|
| 93 | 93 |
return false; |
| 94 | 94 |
} |
| ... | ... | |
| 108 | 108 |
try {
|
| 109 | 109 |
return (new TwoFactorAuthAuthenticator())->verifyCode($secret->code(), |
| 110 | 110 |
$token->code(), |
| 111 |
$this->toleratedDelay); |
|
| 111 |
$this->toleratedDelay->asInt());
|
|
| 112 | 112 |
} catch (AuthConfigurationStorageEntryNotFoundException $exception) {
|
| 113 | 113 |
return false; |
| 114 | 114 |
} |