Browse Source

Fix 3

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

2
auth/auth.py

@ -38,7 +38,7 @@ class Authentication:
# Check if new user can be created
res = c.execute("SELECT 1 FROM new WHERE user=?",
(user,)).fetchone()
if res is None and res[0] != 1:
if res is None or res[0] != 1:
return False
c.execute("DELETE FROM new WHERE user=?", (user,))

Loading…
Cancel
Save