From 4d98866c727a445634d27a80ce8425c6309cf7d9 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Wed, 13 Mar 2013 08:31:43 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/myopac/update_password.tt2 | 1 + Open-ILS/src/templates/opac/password_reset.tt2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/myopac/update_password.tt2 b/Open-ILS/src/templates/opac/myopac/update_password.tt2 index d9a427d996..a5cfea58ef 100644 --- a/Open-ILS/src/templates/opac/myopac/update_password.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_password.tt2 @@ -30,6 +30,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 27f079ef47..8c5f7783cc 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.') } -- 2.11.0