Fixed two factor authentication.

This commit is contained in:
flash 2020-02-09 21:04:43 +00:00
parent ef67ad5c85
commit 2374415327

View file

@ -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,