From 69f2d3660e44bd138d24b6cf97b234bc2efc1c78 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 7 Feb 2011 00:32:21 +0100 Subject: added Thrift backend --- module/UserDatabase.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/UserDatabase.py') 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): -- cgit v1.2.3