aboutsummaryrefslogtreecommitdiff
path: root/api/auth/login.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/auth/login.py')
-rw-r--r--api/auth/login.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/auth/login.py b/api/auth/login.py
index 8eb0eea..e686b67 100644
--- a/api/auth/login.py
+++ b/api/auth/login.py
@@ -15,7 +15,7 @@ def index():
if not email or \
not password:
return "", 400
-
+
user_id = None
user_id = user_id or cursor.execute("select user_id from users where email = ?", [email]).fetchone()
user_id = user_id or cursor.execute("select user_id from users where username = ?", [email]).fetchone()