Skip to content

Commit

Permalink
Merge pull request #120 from justsly/patch-1
Browse files Browse the repository at this point in the history
fix rest login error 500 for starkiller
  • Loading branch information
Cx01N committed Mar 13, 2020
2 parents c5a50ab + 6635f7a commit 79e7de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def user_login(self, user_name, password):
try:
self.lock.acquire()
cur = conn.cursor()
user = cur.execute("SELECT password from users WHERE username = ? AND enabled = true LIMIT 1", (user_name,)).fetchone()
user = cur.execute("SELECT password from users WHERE username = ? AND enabled = 1 LIMIT 1", (user_name,)).fetchone()

if user == None:
return None
Expand Down

0 comments on commit 79e7de5

Please sign in to comment.