userhelper: only notify failed login for actual logins

master
Andrew Dolgov 4 years ago
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…
Cancel
Save