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>
[% 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'>