mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 12:03:54 +02:00
Address Auth Edge Case (#4138)
This commit is contained in:
@@ -420,7 +420,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]):
|
|||||||
except exceptions.UserNotExists:
|
except exceptions.UserNotExists:
|
||||||
try:
|
try:
|
||||||
# Attempt to get user by email
|
# 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:
|
if not associate_by_email:
|
||||||
raise exceptions.UserAlreadyExists()
|
raise exceptions.UserAlreadyExists()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user