From: Michael Peters Date: Wed, 13 Mar 2013 12:31:43 +0000 (-0400) Subject: Password Length Helpers X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=be31d58f7c6656bbd5e8bc9dbb7dbaef8adfb779;p=evergreen%2Fpines.git Password Length Helpers This branch provides length helpers when patrons are setting or resetting passwords. This assumes the default 7 characters, 1 number requirement that comes stock. You would need to change the hard coded strings if you use a different password requirement regex in Library Settings Editor. Signed-off-by: Michael Peters --- diff --git a/Open-ILS/src/templates/opac/myopac/update_password.tt2 b/Open-ILS/src/templates/opac/myopac/update_password.tt2 index 7b77fe7776..4899df43e3 100644 --- a/Open-ILS/src/templates/opac/myopac/update_password.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_password.tt2 @@ -26,6 +26,7 @@ [% l('Current Password') %] [% l('New Password') %] [% l('New Password Again') %] + [% l(' Note: Passwords must be 7 characters (or more) in length and contain at least one number.') %] diff --git a/Open-ILS/src/templates/opac/password_reset.tt2 b/Open-ILS/src/templates/opac/password_reset.tt2 index bbf9418c89..789e71d702 100644 --- a/Open-ILS/src/templates/opac/password_reset.tt2 +++ b/Open-ILS/src/templates/opac/password_reset.tt2 @@ -14,7 +14,7 @@ NO_MATCH => l('Passwords did not match. Please try again'), NOT_ACTIVE => l('This was not an active password reset request. Your password has not been reset.'), NOT_STRONG => l('The password you chose was not considered complex enough to protect your account. Your password has not been reset.'), - TWO_PASSWORDS => l('Please enter and repeat your new password.'), + TWO_PASSWORDS => l('Please enter and repeat your new password. Note: Passwords must be 7 characters (or more) in length and contain at least one number.'), REQUEST_SUCCESS => l('Your user name or barcode has been submitted for a password reset. ' _ 'If a matching account with an email address is found, you will soon receive an email at that address with further instructions for resetting your password.') }