Set threshold to >3 instead of >=3

This commit is contained in:
int2001
2025-01-13 09:30:51 +00:00
parent bdf7f29094
commit 2328dfad29

View File

@@ -610,7 +610,7 @@ class User_Model extends CI_Model {
return 2;
}
if ($u->row()->login_attempts >= 3) {
if ($u->row()->login_attempts > 3) {
$uid = $u->row()->user_id;
log_message('debug', "User ID: [$uid] Login rejected because of too many failed login attempts.");
return 3;