From 62f9be1aaa4b595d5c4e4fe6ac5e8c1671c48c04 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 16 May 2024 16:27:00 +0530 Subject: [PATCH] dev: update the magic login expire check --- apiserver/plane/authentication/views/app/magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/authentication/views/app/magic.py b/apiserver/plane/authentication/views/app/magic.py index 8ad71dea0..27e0b1bd6 100644 --- a/apiserver/plane/authentication/views/app/magic.py +++ b/apiserver/plane/authentication/views/app/magic.py @@ -188,7 +188,7 @@ class MagicSignUpEndpoint(View): return HttpResponseRedirect(url) # Existing user existing_user = User.objects.filter(email=email).first() - if not existing_user: + if existing_user: exc = AuthenticationException( error_code=AUTHENTICATION_ERROR_CODES["USER_ALREADY_EXIST"], error_message="USER_ALREADY_EXIST",