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 361a5ef commit 4646abaCopy full SHA for 4646aba
interface/web/login/otp.php
@@ -125,7 +125,7 @@ function finish_2fa_success($msg = '') {
125
finish_2fa_success();
126
} else {
127
//* 2fa wrong code
128
- $_SESSION['otp']['session_attempts']++; // FIXME can't we skip this and rely on the DB only?
+ $_SESSION['otp']['session_attempts']++;
129
$app->db->query('UPDATE `sys_user` SET otp_attempts=otp_attempts + 1 WHERE userid = ?', $_SESSION['s_pending']['user']['userid']);
130
}
131
0 commit comments