[dw-free] Improve login.bml bad password error message
[commit: http://hg.dwscoalition.org/dw-free/rev/b2f4882e5afe]
http://bugs.dwscoalition.org/show_bug.cgi?id=1103
Better/more useful error message when the user mistypes their password on
login.
Patch by
denise.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1103
Better/more useful error message when the user mistypes their password on
login.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- bin/upgrading/en.dat
- htdocs/login.bml
-------------------------------------------------------------------------------- diff -r 5c13ca636146 -r b2f4882e5afe bin/upgrading/en.dat --- a/bin/upgrading/en.dat Fri Jun 12 21:54:27 2009 +0000 +++ b/bin/upgrading/en.dat Fri Jun 12 21:59:40 2009 +0000 @@ -1252,7 +1252,7 @@ entryform.xpost=Crosspost this entry entryform.xpost.manage=Manage accounts -error.badpassword=Incorrect Password. +error.badpassword2=You typed the wrong password. If you make too many wrong login attempts in a row, your account access will be temporarily blocked, so you may want to <a [[aopts]]>reset your password</a> if you aren't sure what it is. error.code.comm_not_comm=Account is not a community diff -r 5c13ca636146 -r b2f4882e5afe htdocs/login.bml --- a/htdocs/login.bml Fri Jun 12 21:54:27 2009 +0000 +++ b/htdocs/login.bml Fri Jun 12 21:59:40 2009 +0000 @@ -324,7 +324,7 @@ if ($chal_opts->{'expired'}) { push @errors, [ expired_challenge => $ML{'error.expiredchal'}]; } else { - push @errors, [ bad_password => $ML{'error.badpassword'} ]; + push @errors, [ bad_password => BML::ml( 'error.badpassword2', { aopts => "href='$LJ::SITEROOT/lostinfo.bml'" } ) ]; } } --------------------------------------------------------------------------------