From cb8b049b6c878065aebdd31c37cb67321de835ff Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Sun, 25 Dec 2011 18:59:19 +0100 Subject: Use rowid in the user database --- module/database/UserDatabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/database/UserDatabase.py') 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 -- cgit v1.2.3