userhelper: only notify failed login for actual logins
This commit is contained in:
parent
8915bd1b21
commit
89ad25405e
|
@ -46,7 +46,7 @@ class UserHelper {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!$user_id)
|
||||
if ($login && $password && !$user_id && !$check_only)
|
||||
Logger::log(E_USER_WARNING, "Failed login attempt for $login (service: $service) from " . UserHelper::get_user_ip());
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue