Browse Source

Fix 2

master
mid-kid 3 weeks ago
parent
commit
a64379c255
  1. 2
      auth/auth.py

2
auth/auth.py

@ -22,7 +22,7 @@ class Authentication:
if len(token) != 43: if len(token) != 43:
return False return False
with self.connect() as c: with self.connect() as c:
res = cur.execute("SELECT token FROM users WHERE profileId=?", res = c.execute("SELECT token FROM users WHERE profileId=?",
(profileId,)).fetchone() (profileId,)).fetchone()
if res is not None and res[0] != token: if res is not None and res[0] != token:
return False return False

Loading…
Cancel
Save