diff options
author | Mark Sapiro <msapiro@value.net> | 2011-04-26 13:57:37 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-04-26 13:57:37 -0700 |
commit | 0740ae72a79a9027a484e4d17adad91142c8df83 (patch) | |
tree | 5f65b7b2969c66382a337fe081df26dc1776f685 | |
parent | ccf511f7634c630e2395a23fb89c73c5c6279652 (diff) | |
download | mailman2-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.py | 4 |
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: |