Skip to content

Commit 4646aba

Browse files
committed
Session vs global/db-backed attempts
1 parent 361a5ef commit 4646aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/login/otp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function finish_2fa_success($msg = '') {
125125
finish_2fa_success();
126126
} else {
127127
//* 2fa wrong code
128-
$_SESSION['otp']['session_attempts']++; // FIXME can't we skip this and rely on the DB only?
128+
$_SESSION['otp']['session_attempts']++;
129129
$app->db->query('UPDATE `sys_user` SET otp_attempts=otp_attempts + 1 WHERE userid = ?', $_SESSION['s_pending']['user']['userid']);
130130
}
131131
}

0 commit comments

Comments
 (0)