aboutsummaryrefslogtreecommitdiff
path: root/api/auth/login_token.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/auth/login_token.py')
-rw-r--r--api/auth/login_token.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/auth/login_token.py b/api/auth/login_token.py
index bb67c4f..b5b1579 100644
--- a/api/auth/login_token.py
+++ b/api/auth/login_token.py
@@ -7,8 +7,8 @@ from auth.token import validate_token, hash_token
def token_login(token):
hashed = hash_token({"token": token, "expirationDate": 0})
user_id = cursor.execute(
- "select user_id from users where valid_tokens like ?",
- [f"%{hashed['token']}%"]
+ "select user_id from users where valid_tokens like ?",
+ [f"%{hashed['token']}%"]
).fetchone()
return None if not user_id else user_id[0]