From 177812203dd9a8378b0e34a31a16c351480ecb4e Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 30 Oct 2024 19:37:22 +0100 Subject: [PATCH] Fix 3 --- auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,))