From 9526614a3db0c8b17c0db1bd686bedc9071ab00f Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 4 May 2024 14:05:23 +0300 Subject: [PATCH] fix message --- application/Espo/Core/Authentication/Ldap/LdapLogin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/Authentication/Ldap/LdapLogin.php b/application/Espo/Core/Authentication/Ldap/LdapLogin.php index 0e2db75555..382cebd9cb 100644 --- a/application/Espo/Core/Authentication/Ldap/LdapLogin.php +++ b/application/Espo/Core/Authentication/Ldap/LdapLogin.php @@ -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; }