forked from github/plane
fix: key validation when magic sign in (#3403)
This commit is contained in:
parent
c5e7c2f6a8
commit
af5057defa
@ -325,7 +325,7 @@ class MagicSignInEndpoint(BaseAPIView):
|
|||||||
)
|
)
|
||||||
|
|
||||||
user_token = request.data.get("token", "").strip()
|
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 == "":
|
if not key or user_token == "":
|
||||||
return Response(
|
return Response(
|
||||||
|
Loading…
Reference in New Issue
Block a user