File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function finish_2fa_success($msg = '') {
7777if (isset ($ _POST ['code ' ]) && strlen ($ _POST ['code ' ]) == $ otp_recovery_code_length ) {
7878 //* TODO Recovery code handling
7979
80- $ user = $ app ->db ->queryOneRecord ('SELECT otp_attempts, otp_recovery FROM sys_user WHERE userid = ? ' ,$ _SESSION ['s_pending ' ]['user ' ]['userid ' ]);
80+ $ user = $ app ->db ->queryOneRecord ('SELECT otp_attempts, otp_recovery FROM sys_user WHERE userid = ? ' , $ _SESSION ['s_pending ' ]['user ' ]['userid ' ]);
8181
8282 //* We allow one more try to enter recovery code
8383 if ($ user ['otp_attempts ' ] > $ max_global_code_retry + 1 ) {
@@ -103,7 +103,7 @@ function finish_2fa_success($msg = '') {
103103
104104 if (isset ($ _POST ['code ' ]) && strlen ($ _POST ['code ' ]) == $ code_length && isset ($ _SESSION ['otp ' ]['code_hash ' ])) {
105105
106- $ user = $ app ->db ->queryOneRecord ('SELECT otp_attempts FROM sys_user WHERE userid = ? ' ,$ _SESSION ['s_pending ' ]['user ' ]['userid ' ]);
106+ $ user = $ app ->db ->queryOneRecord ('SELECT otp_attempts FROM sys_user WHERE userid = ? ' , $ _SESSION ['s_pending ' ]['user ' ]['userid ' ]);
107107
108108 //* Check if we reached limits
109109 if ($ _SESSION ['otp ' ]['sent ' ] > $ max_code_resend
You can’t perform that action at this time.
0 commit comments