Skip to content

Commit

Permalink
make login key more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 3, 2024
1 parent 1e2389e commit 520e8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypha/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def create_login_service(store):

async def start_login():
"""Start the login process."""
key = "login_key:" + str(random_id(readable=True))
key = "login_key:" + str(random_id(readable=False))
# set the key and with expire time
await redis.setex(key, MAXIMUM_LOGIN_TIME, "")
return {
Expand Down

0 comments on commit 520e8c1

Please sign in to comment.