summaryrefslogtreecommitdiff
path: root/Mailman/SecurityManager.py
diff options
context:
space:
mode:
authorbwarsaw2001-05-16 05:24:41 +0000
committerbwarsaw2001-05-16 05:24:41 +0000
commite4531c4caeec4471467bedc075e894d34dfbbe37 (patch)
tree3d234ee071aa476a36114e5549604aaffdb9fa3f /Mailman/SecurityManager.py
parent5116e6ee2dc2c7c2f9a718a5794f7915092d6fa5 (diff)
downloadmailman-e4531c4caeec4471467bedc075e894d34dfbbe37.tar.gz
mailman-e4531c4caeec4471467bedc075e894d34dfbbe37.tar.zst
mailman-e4531c4caeec4471467bedc075e894d34dfbbe37.zip
Diffstat (limited to 'Mailman/SecurityManager.py')
-rw-r--r--Mailman/SecurityManager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py
index c3f5db77a..e8f2bf986 100644
--- a/Mailman/SecurityManager.py
+++ b/Mailman/SecurityManager.py
@@ -75,15 +75,15 @@ class SecurityManager:
if cookie:
key = key + ':' + cookie
# password will be None for explicit login
- if password is not None:
+ if password is None:
+ return self.CheckCookie(key)
+ else:
if user:
self.ConfirmUserPassword(user, password)
else:
self.ConfirmAdminPassword(password)
print self.MakeCookie(key)
return 1
- else:
- return self.CheckCookie(key)
def MakeCookie(self, key):
# Ingredients for our cookie: our `secret' which is the list's admin