File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9393
9494 //* Check if we reached limits
9595 if ($ _SESSION ['otp ' ]['sent ' ] > $ max_code_resend
96- || $ _SESSION ['otp ' ]['session_attempts ' ] > $ max_session_code_retry
97- || $ user ['otp_attempts ' ] > $ max_global_code_retry
98- || time () > $ _SESSION ['otp ' ]['starttime ' ] + $ max_time ) {
96+ || $ _SESSION ['otp ' ]['session_attempts ' ] > $ max_session_code_retry
97+ || $ user ['otp_attempts ' ] > $ max_global_code_retry
98+ || time () > $ _SESSION ['otp ' ]['starttime ' ] + $ max_time
99+ ) {
99100 unset($ _SESSION ['otp ' ]);
100101 unset($ _SESSION ['s_pending ' ]);
101102 $ app ->error ('2FA failed ' ,'index.php ' );
107108 unset($ _SESSION ['s_pending ' ]);
108109 unset($ _SESSION ['otp ' ]);
109110 header ('Location: ../index.php ' );
110- die ();
111+ die ();
111112 } else {
112113 //* 2fa wrong code
113114 $ _SESSION ['otp ' ]['session_attempts ' ]++; // FIXME can't we skip this and rely on the DB only?
You can’t perform that action at this time.
0 commit comments