mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Set threshold to >3 instead of >=3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user