We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4a184 commit d1d5bfeCopy full SHA for d1d5bfe
interface/web/login/otp.php
@@ -86,7 +86,7 @@ function finish_2fa_success($msg = '') {
86
die("Sorry, contact your administrator.");
87
}
88
89
- if ($_SESSION['otp']['recovery'] == $_POST['code']) {
+ if (password_verify($_POST['code'], $user['otp_recovery'])) {
90
finish_2fa_success('via 2fa recovery code');
91
92
else {
0 commit comments