From 237441532793f079a965192ded349579d0185cb8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 9 Feb 2020 21:04:43 +0000 Subject: [PATCH] Fixed two factor authentication. --- public/auth/twofactor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/auth/twofactor.php b/public/auth/twofactor.php index c50f936b..8cce4f98 100644 --- a/public/auth/twofactor.php +++ b/public/auth/twofactor.php @@ -53,7 +53,7 @@ while(!empty($twofactor)) { $totp->generate(time() + 30), ]; - if(!in_array($twofactor['code'], $acceptedCodes)) { + if(!in_array($twofactor['code'], $accepted)) { $notices[] = sprintf( "Invalid two factor code, %d attempt%s remaining", $remainingAttempts - 1,