------------------------------------------------------------
revno: 1058
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Fri 2009-07-31 15:33:01 -0700
message:
Added a password reminder button to the private archive login page.
modified:
Mailman/Cgi/private.py
NEWS
templates/en/private.html
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription.
=== modified file 'Mailman/Cgi/private.py'
--- Mailman/Cgi/private.py 2006-04-04 23:47:14 +0000
+++ Mailman/Cgi/private.py 2009-07-31 22:33:01 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2009 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
@@ -131,6 +131,27 @@
if cgidata.has_key('submit'):
# This is a re-authorization attempt
message = Bold(FontSize('+1', _('Authorization failed.'))).Format()
+ # Are we processing a password reminder from the login screen?
+ if cgidata.has_key('login-remind'):
+ if username:
+ message = Bold(FontSize('+1', _("""If you are a list member,
+ your password has been emailed to you."""))).Format()
+ else:
+ message = Bold(FontSize('+1',
+ _('Please enter your email address'))).Format()
+ if mlist.isMember(username):
+ mlist.MailUserPassword(username)
+ elif username:
+ # Not a member
+ if mlist.private_roster == 0:
+ # Public rosters
+ safeuser = Utils.websafe(username)
+ message = Bold(FontSize('+1',
+ _('No such member: %(safeuser)s.'))).Format()
+ else:
+ syslog('mischief',
+ 'Reminder attempt of non-member w/ private rosters: %s',
+ username)
# Output the password form
charset = Utils.GetCharSet(mlist.preferred_language)
print 'Content-type: text/html; charset=' + charset + '\n\n'
=== modified file 'NEWS'
--- NEWS 2009-07-31 22:29:47 +0000
+++ NEWS 2009-07-31 22:33:01 +0000
@@ -8,6 +8,8 @@
New Features
+ - Added a password reminder button to the private archive login page.
+
- There is a new list attribute regular_exclude_ignore set from mm_cfg.py
DEFAULT_REGULAR_EXCLUDE_IGNORE. This defaults to True even though the
prior behavior is equivalent to False. A True setting will ignore an
=== modified file 'templates/en/private.html'
--- templates/en/private.html 2005-12-12 00:58:15 +0000
+++ templates/en/private.html 2009-07-31 22:33:01 +0000
@@ -38,6 +38,21 @@
you can explicitly expire the cookie by visiting your
member options page and clicking the
<em>Log out</em> button.
+ <p>
+ <TABLE WIDTH="100%%" BORDER="0" CELLSPACING="4" CELLPADDING="5">
+ <TR>
+ <TD COLSPAN="2" WIDTH="100%%" BGCOLOR="#99CCFF" ALIGN="CENTER">
+ <B><FONT COLOR="#000000" SIZE="+1">Password Reminder</FONT></B>
+ </TD>
+ </TR>
+ <tr>
+ <td>If you don't remember your password, enter your email address
+ above and click the <em>Remind</em> button and your
+ password will be emailed to you.</td>
+ </tr>
+ <tr>
+ <td><center><INPUT name="login-remind" type="SUBMIT" value="Remind" ></center></td>
+ </tr>
</FORM>
</body>
</html>
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org