From 332b50c9d8d4cc54359c722f64c95e63f6454afc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 23 Mar 2023 15:13:24 +0100 Subject: [PATCH] fix migrate guest user being triggered on mixed case email Signed-off-by: Robin Appelman --- lib/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hooks.php b/lib/Hooks.php index e40dac02..19bd325e 100644 --- a/lib/Hooks.php +++ b/lib/Hooks.php @@ -221,7 +221,7 @@ public function handleFirstLogin(GenericEvent $event): void { return; } - if ($email === $user->getUID()) { + if (strtolower($email) === strtolower($user->getUID())) { // This is the guest user, logging in for the very first time return; }