------------------------------------------------------------
revno: 1301
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Tue 2011-04-26 13:57:37 -0700
message:
Since context may be AuthUser, we must refresh the cookie where we have a
user.
modified:
Mailman/SecurityManager.py
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/SecurityManager.py'
--- Mailman/SecurityManager.py 2011-04-25 23:52:35 +0000
+++ Mailman/SecurityManager.py 2011-04-26 20:57:37 +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
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org