aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbwarsaw <>2004-04-24 00:40:32 +0000
committerbwarsaw <>2004-04-24 00:40:32 +0000
commita907cf608b8bda93c64818110e17373dfe7a9b43 (patch)
tree8c9e31f851713cfd3a08019432ea29c9117923af
parentb4e6661da1987410af2d96f3a24d363ca356ab0f (diff)
downloadmailman2-a907cf608b8bda93c64818110e17373dfe7a9b43.tar.gz
mailman2-a907cf608b8bda93c64818110e17373dfe7a9b43.tar.xz
mailman2-a907cf608b8bda93c64818110e17373dfe7a9b43.zip
process(): Disallow multiple password retrievals. Patch by Tokio Kikuchi.
Diffstat (limited to '')
-rw-r--r--Mailman/Commands/cmd_password.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Commands/cmd_password.py b/Mailman/Commands/cmd_password.py
index c2347be9..1b3958c0 100644
--- a/Mailman/Commands/cmd_password.py
+++ b/Mailman/Commands/cmd_password.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2002-2004 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -49,6 +49,8 @@ def process(res, args):
if mlist.isMember(address):
password = mlist.getMemberPassword(address)
res.results.append(_('Your password is: %(password)s'))
+ # Prohibit multiple password retrievals.
+ return STOP
else:
listname = mlist.real_name
res.results.append(
@@ -62,6 +64,8 @@ def process(res, args):
if mlist.isMember(address):
password = mlist.getMemberPassword(address)
res.results.append(_('Your password is: %(password)s'))
+ # Prohibit multiple password retrievals.
+ return STOP
else:
listname = mlist.real_name
res.results.append(