From 2328dfad29d466df11f7e86f281cfb8ef94e9de2 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 13 Jan 2025 09:30:51 +0000 Subject: [PATCH] Set threshold to >3 instead of >=3 --- application/models/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/User_model.php b/application/models/User_model.php index 60c3809b1..6c3adf85c 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -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;