summaryrefslogtreecommitdiff
path: root/modules/mm_security.py
diff options
context:
space:
mode:
authormailman1998-03-26 05:24:06 +0000
committermailman1998-03-26 05:24:06 +0000
commitfb9f168857b88c8d75baea989a6d8542a3e8022e (patch)
tree8ec93acfe2166c36c90b08af79fcc0a656a2d91f /modules/mm_security.py
parent35e243a846759eca524278dabdba903758bcd4de (diff)
downloadmailman-fb9f168857b88c8d75baea989a6d8542a3e8022e.tar.gz
mailman-fb9f168857b88c8d75baea989a6d8542a3e8022e.tar.zst
mailman-fb9f168857b88c8d75baea989a6d8542a3e8022e.zip
Diffstat (limited to 'modules/mm_security.py')
-rw-r--r--modules/mm_security.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/mm_security.py b/modules/mm_security.py
index 83e27d009..0202baba9 100644
--- a/modules/mm_security.py
+++ b/modules/mm_security.py
@@ -43,8 +43,11 @@ class SecurityManager:
return 1
if not user in self.members and not user in self.digest_members:
user = self.FindUser(user)
- if string.lower(pw) <> string.lower(self.passwords[user]):
- raise mm_err.MMBadPasswordError
+ try:
+ if string.lower(pw) <> string.lower(self.passwords[user]):
+ raise mm_err.MMBadPasswordError
+ except KeyError:
+ raise mm_err.MMBadUserError
return 1
def ChangeUserPassword(self, user, newpw, confirm):