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 1176d84 commit 361a5efCopy full SHA for 361a5ef
interface/web/login/otp.php
@@ -89,6 +89,9 @@ function finish_2fa_success($msg = '') {
89
if ($_SESSION['otp']['recovery'] == $_POST['code']) {
90
finish_2fa_success('via 2fa recovery code');
91
}
92
+ else {
93
+ $app->db->query('UPDATE `sys_user` SET otp_attempts=otp_attempts + 1 WHERE userid = ?', $_SESSION['s_pending']['user']['userid']);
94
+ }
95
96
97
0 commit comments