Update of /cvsroot/mailman/mailman/Mailman/Commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18578
Modified Files:
Tag: Release_2_1-maint
cmd_password.py
Log Message:
process(): Disallow multiple password retrievals. Patch by Tokio Kikuchi.
Index: cmd_password.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Commands/cmd_password.py,v
retrieving revision 2.0
retrieving revision 2.0.2.1
diff -u -d -r2.0 -r2.0.2.1
--- cmd_password.py 2 May 2002 02:54:46 -0000 2.0
+++ cmd_password.py 24 Apr 2004 00:40:32 -0000 2.0.2.1
@@ -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 @@
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 @@
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(
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org