diff --git a/auth/auth.py b/auth/auth.py index 51d11c7..dfdfb3e 100644 --- a/auth/auth.py +++ b/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,))