Fix: don't print hashes

This commit is contained in:
Reid 'arrdem' McKenzie 2023-07-08 22:10:13 -06:00
parent 4faa5a4e06
commit bbf0346f6a

View file

@ -185,9 +185,6 @@ class Db(Queries):
digest.update(password.encode("utf-8")) digest.update(password.encode("utf-8"))
res = super().try_login(username=username, hash=digest.hexdigest()) res = super().try_login(username=username, hash=digest.hexdigest())
if not res: if not res:
print("WARNING: Failed to log in!")
for it in self._cursor.execute("SELECT * FROM users").fetchall():
print("DEBUG", it)
return None return None
return self.create_key(uid=res.id, name="web session", ttl=ttl) return self.create_key(uid=res.id, name="web session", ttl=ttl)