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