Address Auth Edge Case (#4138)

This commit is contained in:
pablonyx
2025-02-26 17:24:23 -08:00
committed by GitHub
parent 25389c5120
commit f2d74ce540

View File

@ -420,7 +420,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]):
except exceptions.UserNotExists:
try:
# Attempt to get user by email
user = await self.get_by_email(account_email)
user = cast(User, await self.user_db.get_by_email(account_email))
if not associate_by_email:
raise exceptions.UserAlreadyExists()