Commit the login command, so we properly update last login date
authorMagnus Hagander <magnus@hagander.net>
Tue, 18 Nov 2008 13:06:52 +0000 (13:06 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 18 Nov 2008 13:06:52 +0000 (13:06 +0000)
planetadmin/auth.py

index 3fed0b445541e4e4740b460122330a4044be30bd..3df82bc689fba01a13fc999871e98abcf81e179b 100644 (file)
@@ -9,6 +9,7 @@ class AuthBackend:
                        cur = conn.cursor()
                        cur.execute('SELECT * FROM community_login(%s,%s)', (username, password))
                        row  = cur.fetchall()[0]
+                       conn.commit()
                finally:
                        conn.close()