------------------------------------------------------------
revno: 1168
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.2
timestamp: Tue 2011-04-26 13:56:54 -0700
message:
  Since context may be AuthUser, we must refresh the cookie where we have a 
user.
modified:
  Mailman/SecurityManager.py


--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/SecurityManager.py'
--- Mailman/SecurityManager.py	2011-04-25 23:51:10 +0000
+++ Mailman/SecurityManager.py	2011-04-26 20:56:54 +0000
@@ -233,8 +233,6 @@
         for ac in authcontexts:
             ok = self.CheckCookie(ac, user)
             if ok:
-                # Refresh the cookie
-                print self.MakeCookie(ac, user)
                 return True
         # Check passwords
         ac = self.Authenticate(authcontexts, response, user)
@@ -321,6 +319,8 @@
                          for u in usernames]:
                 ok = self.__checkone(c, authcontext, user)
                 if ok:
+                    # Refresh the cookie
+                    print self.MakeCookie(authcontext, user)
                     return True
             return False
         else:

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to