From 034f0a06dbd98ed3fc57bbc34737de438978b399 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:04:04 +0530 Subject: [PATCH] fix: key validation when magic sign in (#3403) --- apiserver/plane/app/views/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/app/views/authentication.py b/apiserver/plane/app/views/authentication.py index d9e4b4af2..a41200d61 100644 --- a/apiserver/plane/app/views/authentication.py +++ b/apiserver/plane/app/views/authentication.py @@ -325,7 +325,7 @@ class MagicSignInEndpoint(BaseAPIView): ) user_token = request.data.get("token", "").strip() - key = request.data.get("key", False).strip().lower() + key = request.data.get("key", "").strip().lower() if not key or user_token == "": return Response(