summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Wieland Hoffmann <themineo@gmail.com> 2011-12-25 18:59:19 +0100
committerGravatar Wieland Hoffmann <themineo@gmail.com> 2011-12-25 18:59:19 +0100
commitcb8b049b6c878065aebdd31c37cb67321de835ff (patch)
tree2b81b280fc0c1029626fa79de48e47f4232e80f6
parentfix SO for new account manager (diff)
downloadpyload-cb8b049b6c878065aebdd31c37cb67321de835ff.tar.xz
Use rowid in the user database
-rw-r--r--module/database/UserDatabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/database/UserDatabase.py b/module/database/UserDatabase.py
index a5077711d..43fd93df3 100644
--- a/module/database/UserDatabase.py
+++ b/module/database/UserDatabase.py
@@ -25,7 +25,7 @@ class UserMethods():
@queue
def checkAuth(db, user, password):
c = db.c
- c.execute('SELECT id, name, password, role, permission, template, email FROM "users" WHERE name=?', (user, ))
+ c.execute('SELECT rowid, name, password, role, permission, template, email FROM "users" WHERE name=?', (user, ))
r = c.fetchone()
if not r:
return {}
@@ -55,7 +55,7 @@ class UserMethods():
@queue
def changePassword(db, user, oldpw, newpw):
- db.c.execute('SELECT id, name, password FROM users WHERE name=?', (user, ))
+ db.c.execute('SELECT rowid, name, password FROM users WHERE name=?', (user, ))
r = db.c.fetchone()
if not r:
return False