userhelper: only notify failed login for actual logins

This commit is contained in:
Andrew Dolgov 2021-02-25 18:26:37 +03:00
parent 8915bd1b21
commit 89ad25405e
1 changed files with 1 additions and 1 deletions

View File

@ -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;