From 77debc3875e34d519fd3b4495a67e036068f4cd7 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 5 Oct 2022 14:30:22 +0300 Subject: [PATCH] fix --- application/Espo/Core/Authentication/Oidc/Sync.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/Espo/Core/Authentication/Oidc/Sync.php b/application/Espo/Core/Authentication/Oidc/Sync.php index 1131f0a3f6..b6fdc93755 100644 --- a/application/Espo/Core/Authentication/Oidc/Sync.php +++ b/application/Espo/Core/Authentication/Oidc/Sync.php @@ -287,6 +287,8 @@ class Sync throw new RuntimeException("No `userNameRegularExpression` in config."); } + $username = strtolower($username); + /** @var string $result */ $result = preg_replace("/{$regExp}/", '_', $username);