summaryrefslogtreecommitdiffstats
path: root/module/UserDatabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/UserDatabase.py')
-rw-r--r--module/UserDatabase.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/UserDatabase.py b/module/UserDatabase.py
index 7863e16b8..a69dfff0e 100644
--- a/module/UserDatabase.py
+++ b/module/UserDatabase.py
@@ -36,6 +36,8 @@ class UserMethods():
h = sha1(salt + password)
if h.hexdigest() == pw:
return {"name": r[0], "role": r[2], "permission": r[3], "template": r[4]}
+ else:
+ return {}
@style.queue
def addUser(db, user, password):