mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 18:47:11 +00:00
Fix return data for expired code user
This commit is contained in:
parent
efb0b9f495
commit
d17a9ba4c8
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ async def aget_user_validated_by_email_verification_code(code: str, email: str)
|
|||
return None, False
|
||||
|
||||
if user.email_verification_code_expiry < datetime.now(tz=timezone.utc):
|
||||
return None, True
|
||||
return user, True
|
||||
|
||||
user.email_verification_code = None
|
||||
user.verified_email = True
|
||||
|
|
Loading…
Reference in a new issue