diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-27 22:52:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-27 22:52:24 +0200 |
commit | 3254a85595dd27a96862d8d7b932c03ade166f95 (patch) | |
tree | 969bd75d09550da32792c2537e8d6e9f0101386e /module/database | |
parent | fixes last commit (diff) | |
download | pyload-3254a85595dd27a96862d8d7b932c03ade166f95.tar.xz |
change password in webif
Diffstat (limited to 'module/database')
-rw-r--r-- | module/database/UserDatabase.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/database/UserDatabase.py b/module/database/UserDatabase.py index 11bdbabc0..0e3011593 100644 --- a/module/database/UserDatabase.py +++ b/module/database/UserDatabase.py @@ -71,9 +71,9 @@ class UserMethods(): @style.queue - def changePw(db, user, oldpw, newpw): + def changePassword(db, user, oldpw, newpw): - db.c.execute('SELECT id, name, password, role, permission, template FROM "users" WHERE name=?', (user, )) + db.c.execute('SELECT id, name, password FROM users WHERE name=?', (user, )) r = db.c.fetchone() if not r: return False @@ -118,10 +118,8 @@ class UserMethods(): return user - @style.queue def removeUser(db, user): db.c.execute('DELETE FROM users WHERE name=?', (user, )) - DatabaseBackend.registerSub(UserMethods) |