Author: justi9
Date: 2010-09-08 16:28:07 -0400 (Wed, 08 Sep 2010)
New Revision: 4263
Modified:
mgmt/newdata/cumin/python/cumin/account/widgets.py
Log:
For bz 631694, resync the login session's user to the database before checking the
password
Modified: mgmt/newdata/cumin/python/cumin/account/widgets.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/account/widgets.py 2010-09-08 18:56:41 UTC (rev 4262)
+++ mgmt/newdata/cumin/python/cumin/account/widgets.py 2010-09-08 20:28:07 UTC (rev 4263)
@@ -183,6 +183,12 @@
new1 = self.new1.get(session)
user = session.client_session.attributes["login_session"].user
+
+ # In case a different login session for this user has made
+ # changes, refresh the user object
+
+ user.load(session.cursor)
+
crypted = user.password
if crypt_password(current, crypted) != crypted:
Show replies by date