user.save() call

This commit is contained in:
Untone 2021-07-30 16:24:54 +03:00
parent f868f544d7
commit eb4dd88558

View File

@ -16,6 +16,7 @@ async def confirm(*_, confirm_token):
auth_token, user = await Authorize.confirm(confirm_token)
if auth_token:
user.emailConfirmed = True
user.save()
return { "status": True, "token": auth_token }
else:
return { "status": False, "error": "Email not confirmed"}