Display "initial" message on update_password
authorJeff Godin <jgodin@tadl.org>
Thu, 29 Nov 2012 21:51:52 +0000 (16:51 -0500)
committerJeff Godin <jgodin@tadl.org>
Thu, 29 Nov 2012 21:56:35 +0000 (16:56 -0500)
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 <jgodin@tadl.org>
templates_tadlskin/opac/myopac/update_password.tt2

index ab668c5..1cdf406 100644 (file)
@@ -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"  %]
 
 <div id='myopac_summary_div' style="padding:0px;">
     <div id='account-update-email-error'>
         [% |l %] Your current password was not correct. [% END %]
     </div>
+[% ELSIF cgi.param('initial') %]
+    <div id='account-update-email-error'>
+        [% |l %] Looks like your password is still a four digit PIN. We recommend that you set a new password now. [% END %]
+    </div>
 [% END %]
 
 <form method='POST' id='account-update-email'>