From f05eacddb8954a9a66639fc14aef01c81b90690e Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 19 Aug 2015 13:47:44 -0400 Subject: [PATCH] Add weak login password message to TPAC template Add a message (keyed off of URL param set by EGCatLoader) to the update_password template notifying the user why they may have been directed to the change password page at first login. Signed-off-by: Jeff Godin --- Open-ILS/src/templates/opac/myopac/update_password.tt2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/templates/opac/myopac/update_password.tt2 b/Open-ILS/src/templates/opac/myopac/update_password.tt2 index bef8b994c6..d75b38db73 100644 --- a/Open-ILS/src/templates/opac/myopac/update_password.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_password.tt2 @@ -1,6 +1,7 @@ [% PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; + cgi = CGI.new(CGI.query_string); myopac_page = "prefs" %]

[% l('Change Password') %]

@@ -26,6 +27,10 @@
[% |l %]Your current password was not correct.[% END %]
+[% ELSIF cgi.param('initial') %] +
+ [% |l %] Your current password may not be strong enough to protect your account. We recommend that you set a new password now. [% END %] +
[% END %]
-- 2.11.0