TPAC: Keep loc(g) around on link to password reset form
authorDan Scott <dscott@laurentian.ca>
Fri, 31 Aug 2012 20:58:22 +0000 (16:58 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 31 Aug 2012 20:58:22 +0000 (16:58 -0400)
Going from the login form to the password reset form, we're clearing all
variables, which kills our connection to the chosen library. So keep
that around.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/login/form.tt2

index 1e23a98..b9ebe78 100644 (file)
@@ -1,3 +1,6 @@
+[%- 
+    PROCESS get_library;
+-%]
 [% IF ctx.login_failed_event %]
 <div id='login-failed-message'>
 [%
@@ -54,7 +57,7 @@
                     <div style="padding-top: 1em; margin-right: 1em;">
                         <input type="submit" value="[% l('Log in') %]" alt="[% l('Log in') %]" class="opac-button" />
                         [% IF reset_password %]
-                        <a href='[% mkurl(ctx.opac_root _ '/password_reset', {}, 1) %]'>[% l('Forgot your password?') %]</a>
+                        <a href='[% mkurl(ctx.opac_root _ '/password_reset', {$loc_name => loc_value}, 1) %]'>[% l('Forgot your password?') %]</a>
                         [% END %]
                     </div>
                 </td>