Fixed two factor authentication.
This commit is contained in:
parent
ef67ad5c85
commit
2374415327
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue