diff --git a/Core/Objects/TwoFactor/TimeBasedTwoFactorToken.class.php b/Core/Objects/TwoFactor/TimeBasedTwoFactorToken.class.php index ec3c466..0562100 100644 --- a/Core/Objects/TwoFactor/TimeBasedTwoFactorToken.class.php +++ b/Core/Objects/TwoFactor/TimeBasedTwoFactorToken.class.php @@ -65,7 +65,7 @@ class TimeBasedTwoFactorToken extends TwoFactorToken { // verify the last $numCodes codes for ($i = 0; $i < max(1, $numCodes); $i++) { - if ($this->generate($now - $period * i, $length, $period) === $code) { + if ($this->generate($now - $period * $i, $length, $period) === $code) { return true; } }