fix: user login after account deactivation (#3073)

This commit is contained in:
Nikhil 2023-12-11 22:44:37 +05:30 committed by GitHub
parent 1d3745157d
commit de24b02a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,13 +343,6 @@ class MagicSignInEndpoint(BaseAPIView):
if str(token) == str(user_token):
user = User.objects.get(email=email)
if not user.is_active:
return Response(
{
"error": "Your account has been deactivated. Please contact your site administrator."
},
status=status.HTTP_403_FORBIDDEN,
)
# Send event
auth_events.delay(
user=user.id,