From e4531c4caeec4471467bedc075e894d34dfbbe37 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 16 May 2001 05:24:41 +0000 Subject: WebAuthenticate(): Minor simplification. --- Mailman/SecurityManager.py | 6 +++--- 1 file 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 -- cgit v1.3.1