From ecde7edf09ff1cb572fd35e2d24c504263a8a6a8 Mon Sep 17 00:00:00 2001 From: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Date: Wed, 1 Nov 2023 14:31:42 +0530 Subject: [PATCH] fix: removed numbers from magic code (#2570) --- apiserver/plane/api/views/authentication.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apiserver/plane/api/views/authentication.py b/apiserver/plane/api/views/authentication.py index 2f01abb0c..eadfeef61 100644 --- a/apiserver/plane/api/views/authentication.py +++ b/apiserver/plane/api/views/authentication.py @@ -249,11 +249,11 @@ class MagicSignInGenerateEndpoint(BaseAPIView): ## Generate a random token token = ( - "".join(random.choices(string.ascii_lowercase + string.digits, k=4)) + "".join(random.choices(string.ascii_lowercase, k=4)) + "-" - + "".join(random.choices(string.ascii_lowercase + string.digits, k=4)) + + "".join(random.choices(string.ascii_lowercase, k=4)) + "-" - + "".join(random.choices(string.ascii_lowercase + string.digits, k=4)) + + "".join(random.choices(string.ascii_lowercase, k=4)) ) ri = redis_instance()