Skip to content
Permalink
Browse files

Fixed two factor authentication.

  • Loading branch information
flashwave committed Feb 9, 2020
1 parent f95d8f0 commit 880164ef2b6542e4c7bc98172965a0ae60536199
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/auth/twofactor.php
@@ -53,7 +53,7 @@
$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,

0 comments on commit 880164e

Please sign in to comment.
You can’t perform that action at this time.