Customize login form for Laurentian LDAP login
authorDan Scott <dscott@laurentian.ca>
Thu, 30 Aug 2012 16:01:00 +0000 (12:01 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 May 2013 15:47:52 +0000 (11:47 -0400)
Now that we're synced up with LDAP authentication, provide the
appropriate guidance on the login form.

Set ou_email_host via a hidden form variable.

Provide more rational inline help for OSUL login form.

Link to the OSUL password reset form on login failure

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

index 1e23a98..f460c0b 100644 (file)
@@ -6,8 +6,9 @@
     ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE';
         l("This account has been deactivated.  Please contact your local library.");
     ELSE;
-        l("Login failed. The username or password provided was not valid.  
-            Ensure Caps-Lock is off and try again or contact your local library.");
+        l("Login failed. The username or password provided was not valid.
+            Ensure Caps-Lock is off and try again.");
+        l(" Or <a href='href='https://sspr.laurentian.ca/'>reset your password</a>.");
     END;
 %]
 </div>
 
 <div id='login-form-box' class='login_boxes left_brain' style='float:left'>
     <h1>[% l('Log in to Your Account') %]</h1>
-    [% l('Please enter the following information:') %]
     <form method='POST'>
         <table>
             <tr>
-                <td style="width: 20em; vertical-align: top; padding-top: 1.5em;" class='lbl1'><label for='username_field'>[% l('Library Card Number or Username') %]</label>
-                    <div class="lbl2">[% l('Please include leading zeros and no spaces.') %]</div>
-                   <div class="lbl2">[% l('Example: 0026626051') %]</div>
+                <td style="width: 20em; vertical-align: top; padding-top: 1.5em;" class='lbl1'>
+                    <label for='username_field'>[% l('Laurentian username') %]</label>
+                    <div class="lbl2">[% l('Your username and password are the same as your Groupwise and Desire2Learn account.') %]</div>
                 </td>
                 <td style="vertical-align: top; padding-top: 1.5em;">
                     <div class="input_bg">
                         <input type="text" id="username_field" name="username" autofocus />
+                        <div class="lbl2" style="padding-top: 1em;">[% l('Examples: jx_smith, jsmith') %]</div>
                     </div>
                 </td>
             </tr>
             <tr>
                 <td class="lbl1" style="width: 20em; vertical-align: top; padding-top: 1.5em">
-                    <label for="password_field">[% l('PIN Number or Password') %]</label>
-                    <div>[% INCLUDE "opac/parts/login/password_hint.tt2" %]</div>
+                    <label for="password_field">[% l('Password') %]</label>
                 </td>
                 <td  style="vertical-align: top; padding-top: 1.5em;">
                     <div class="input_bg">
                             END;
                             redirect = redirect  | replace('^http:', 'https:');
                         %]
+                        <input type='hidden' name='ou_email_host' value='laurentian.ca'/>
                         <input type='hidden' name='redirect_to' value='[% redirect %]'/>
                         <input type="checkbox" name="persist" id="login_persist" /><label for="login_persist"> [% l('Stay logged in?') %]</label>
                     </div>
                     <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='https://sspr.laurentian.ca/'>[% l('Forgot your password?') %]</a>
                         [% END %]
                     </div>
                 </td>
@@ -62,4 +63,3 @@
         </table>
     </form>
 </div>
-<div style='float:right; max-width: 200px; text-align: center; margin-right: 25%;'>[% INCLUDE "opac/parts/login/help.tt2" %]</div>