aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-04-26 13:57:37 -0700
committerMark Sapiro <msapiro@value.net>2011-04-26 13:57:37 -0700
commit0740ae72a79a9027a484e4d17adad91142c8df83 (patch)
tree5f65b7b2969c66382a337fe081df26dc1776f685
parentccf511f7634c630e2395a23fb89c73c5c6279652 (diff)
downloadmailman2-0740ae72a79a9027a484e4d17adad91142c8df83.tar.gz
mailman2-0740ae72a79a9027a484e4d17adad91142c8df83.tar.xz
mailman2-0740ae72a79a9027a484e4d17adad91142c8df83.zip
Since context may be AuthUser, we must refresh the cookie where we have a user.
-rw-r--r--Mailman/SecurityManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py
index 5d5acd5b..55536aa1 100644
--- a/Mailman/SecurityManager.py
+++ b/Mailman/SecurityManager.py
@@ -233,8 +233,6 @@ class SecurityManager:
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 @@ class SecurityManager:
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: