fix: removed numbers from magic code (#2570)

This commit is contained in:
Bavisetti Narayan 2023-11-01 14:31:42 +05:30 committed by GitHub
parent 02f4916e49
commit ecde7edf09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()