Skip to content

Commit

Permalink
fix migrate guest user being triggered on mixed case email
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Mar 23, 2023
1 parent d1d6395 commit 332b50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 332b50c

Please sign in to comment.