diff --git a/auth/auth.py b/auth/auth.py index 79a7b73..51d11c7 100644 --- a/auth/auth.py +++ b/auth/auth.py @@ -22,7 +22,7 @@ class Authentication: if len(token) != 43: return False 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() if res is not None and res[0] != token: return False