Skip to content

Commit

Permalink
Merge pull request #1007 from nextcloud/migrate-case-email
Browse files Browse the repository at this point in the history
fix migrate guest user being triggered on mixed case email
  • Loading branch information
skjnldsv authored Mar 28, 2023
2 parents 6cb37ad + 332b50c commit 6bd3509
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 6bd3509

Please sign in to comment.