summaryrefslogtreecommitdiffstats
path: root/module/UserDatabase.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-07 00:32:21 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-07 00:32:21 +0100
commit69f2d3660e44bd138d24b6cf97b234bc2efc1c78 (patch)
treeaf276b8ed0b5cac5a62e6949a00d607afcc94e5d /module/UserDatabase.py
parentclosed #231 (diff)
downloadpyload-69f2d3660e44bd138d24b6cf97b234bc2efc1c78.tar.xz
added Thrift backend
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):