From a907cf608b8bda93c64818110e17373dfe7a9b43 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sat, 24 Apr 2004 00:40:32 +0000 Subject: process(): Disallow multiple password retrievals. Patch by Tokio Kikuchi. --- Mailman/Commands/cmd_password.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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( -- cgit v1.2.3