small fix

This commit is contained in:
2026-01-28 15:18:54 +01:00
parent e82e6ee6a7
commit eda22e0958

View File

@@ -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;
}
}