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