From eda22e095845db635306eab721eb42202b9023e6 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 28 Jan 2026 15:18:54 +0100 Subject: [PATCH] small fix --- Core/Objects/TwoFactor/TimeBasedTwoFactorToken.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }