Skip to content

Commit ba6c51b

Browse files
author
Kristan Kenney
committed
Ensure error message is shown if 2FA token is invalid
1 parent b93570f commit ba6c51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ function authenticate_user(){
107107
unset($output);
108108
if ( $return_var > 0 ) {
109109
sleep(2);
110-
unset($_POST['twofa']);
111110
$error = "<a class=\"error\">".__('Invalid or missing 2FA token')."</a>";
112111
return $error;
112+
unset($_POST['twofa']);
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)