From de24b02a0a4856c496c3bf800e6f41807c5e3697 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Mon, 11 Dec 2023 22:44:37 +0530 Subject: [PATCH] fix: user login after account deactivation (#3073) --- apiserver/plane/app/views/authentication.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apiserver/plane/app/views/authentication.py b/apiserver/plane/app/views/authentication.py index 811eeb959..256446313 100644 --- a/apiserver/plane/app/views/authentication.py +++ b/apiserver/plane/app/views/authentication.py @@ -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,