dev: update the magic login expire check

This commit is contained in:
pablohashescobar 2024-05-16 16:27:00 +05:30
parent 3a907677c6
commit 62f9be1aaa

View File

@ -188,7 +188,7 @@ class MagicSignUpEndpoint(View):
return HttpResponseRedirect(url) return HttpResponseRedirect(url)
# Existing user # Existing user
existing_user = User.objects.filter(email=email).first() existing_user = User.objects.filter(email=email).first()
if not existing_user: if existing_user:
exc = AuthenticationException( exc = AuthenticationException(
error_code=AUTHENTICATION_ERROR_CODES["USER_ALREADY_EXIST"], error_code=AUTHENTICATION_ERROR_CODES["USER_ALREADY_EXIST"],
error_message="USER_ALREADY_EXIST", error_message="USER_ALREADY_EXIST",