From ede5f22774c16ebb13227228c62c6a902d1b85bb Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Thu, 29 Nov 2012 16:51:52 -0500 Subject: [PATCH] Display "initial" message on update_password When directing a patron to the update_password page because we detected that they were using a four digit PIN as a password, display a message to that effect. Signed-off-by: Jeff Godin --- templates_tadlskin/opac/myopac/update_password.tt2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates_tadlskin/opac/myopac/update_password.tt2 b/templates_tadlskin/opac/myopac/update_password.tt2 index ab668c5157..1cdf406b98 100644 --- a/templates_tadlskin/opac/myopac/update_password.tt2 +++ b/templates_tadlskin/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" %]
@@ -19,6 +20,10 @@
[% |l %] Your current password was not correct. [% END %]
+[% ELSIF cgi.param('initial') %] +
+ [% |l %] Looks like your password is still a four digit PIN. We recommend that you set a new password now. [% END %] +
[% END %]
-- 2.11.0