Use the existing crude password reset form to enable password resets.
Slightly longer term, we need to destroy the existing form and pull it
into TPAC proper (including such good stuff as real localization and
getting rid of Dojo / Dijit), but this works for now.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
[% PROCESS "opac/parts/header.tt2";
+ PROCESS "opac/parts/config.tt2";
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Account Login") %]
[% INCLUDE "opac/parts/login/form.tt2" %]
<div class="clear-both very-big-height"></div>
<script type="text/javascript">
- /* Note: when common browsers suppor HTML5 "autofocus", we can remove this */
+ /* Note: when common browsers support HTML5 "autofocus", we can remove this */
var _onload = window.onload;
window.onload = function() {
try {
google_analytics.code = 'UA-9999999-99';
##############################################################################
+# Enable "Forgot your password?" prompt at login
+##############################################################################
+reset_password = 'true';
+
+##############################################################################
# Misc. UI Settings
##############################################################################
</div>
<br/>
</div>
-<div class="hide_me" id="forget_pw">
- <h1>Password Reset</h1>
- Username or Barcode<br />
- <input type="text" id="forget_pw_user" /><br /><br />
- Email Address on account<br />
- <input type="text" id="forget_pw_email" /><br />
- <a href="#">Submit</a>
- <a href="#">Cancel</a>
-</div>
<table id='change_pw_table' class='data_grid hide_me' style='margin-left: 20px;' width='95%'>
<thead>
<tr><td colspan='2' align='center'><b>[% l("Password") %]</b></td></tr>
</div>
<div style="padding-top:14px;">
<input type="submit" value="[% l('Log in') %]" alt="[% l('Log in') %]" class="opac-button" />
- <!-- TODO
- <a href="reset_password"
- style="position:relative;top:-13px;left:2px;font-size:10px;">Forgot your PIN?</a>
- -->
+ [% IF reset_password; loc = ctx.locale.replace('_', '-'); %]
+ <a href='/opac/password/[% loc %]/'>[% l('Forgot your password?') %]</a>
+ [% END %]
</div>
- </td>
+ </td>
</tr>
</table>
<br /><br />