Browse Source

Actually commit the changes

master
mid-kid 3 weeks ago
parent
commit
0adfc49662
  1. 4
      auth/auth.py

4
auth/auth.py

@ -29,8 +29,8 @@ class Authentication:
return True return True
def check_user(self, profileId, token, user): def check_user(self, profileId, token, user):
with self.connect() as con: with self.connect() as c:
with contextlib.closing(con.cursor()) as c: with c:
res = c.execute("SELECT user FROM users WHERE profileId=?", res = c.execute("SELECT user FROM users WHERE profileId=?",
(profileId,)).fetchone() (profileId,)).fetchone()
if res is not None: if res is not None:

Loading…
Cancel
Save