fix message

This commit is contained in:
Yuri Kuznetsov
2024-05-04 14:05:23 +03:00
parent 9fca726329
commit 9526614a3d

View File

@@ -290,7 +290,10 @@ class LdapLogin implements Login
if (strtolower($username) !== strtolower($tokenUsername)) {
$ip = $this->util->obtainIpFromRequest($request);
$this->log->alert('Unauthorized access attempt for user [' . $username . '] from IP [' . $ip . ']');
$this->log->alert("Unauthorized access attempt for user '{username}' from IP '{ip}'.", [
'username' => $username,
'ip' => $ip,
]);
return null;
}