packages/ssoinabox-webui/root/usr/local/share/weblogin/ssoinabox/templates/pwchange.tmpl
changeset 0 3906ca745819
equal deleted inserted replaced
-1:000000000000 0:3906ca745819
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html>
       
     3   <head>
       
     4     <http-equiv="pragma" content="no-cache">
       
     5     <title>WebAuth Password Change</title>
       
     6   </head>
       
     7 
       
     8   [% IF notdefined %]
       
     9 <!--
       
    10 This is the template for the WebAuth password change page.  This page is
       
    11 called from pwchange.fcgi script on the weblogin server.  It displays a form
       
    12 asking the user for username, current password, and two prompts for the
       
    13 new password (for confirmation).  Variables used:
       
    14 
       
    15 error                  : some error occurred
       
    16 err_username           : no username error
       
    17 err_password           : no old password error
       
    18 err_newpassword        : no new password error
       
    19 err_newpassword_match  : new passwords do not match
       
    20 err_loginfailed        : username and password were incorrect
       
    21 err_rejected           : username not permitted to authenticate
       
    22 err_pwweak             : password changed for the password being too weak
       
    23 err_pwchange           : actual password change failed (see err_msg for why)
       
    24 err_msg                : extra text describing an error
       
    25 RT                     : Response Token
       
    26 ST                     : Service Token
       
    27 CPT                    : kadmin/changepw Token
       
    28 skip_username          : suppress display of an entry box for the username
       
    29 username               : the username
       
    30 password               : the old password
       
    31 new_passwd1            : the new password (first)
       
    32 new_passwd2            : the new password (second)
       
    33 changepw               : set to show this is not our first visit
       
    34 expired                : set when sent here for expired password login fail
       
    35 -->
       
    36   [% END %]
       
    37 
       
    38   <body onload="document.pwchange.username.focus();">
       
    39     <h1 align="center">WebAuth Password Change</h1>
       
    40     [% IF error %]
       
    41       <div class="error" align="center">
       
    42         <p><strong>
       
    43           [% IF err_username && err_password %]
       
    44             <!-- Error: no username or password submitted. -->
       
    45             Error: Enter your username and password.
       
    46           [% ELSIF err_username %]
       
    47             <!-- Error: no username submitted. -->
       
    48             Error: Enter your username.
       
    49           [% ELSIF err_password %]
       
    50             <!-- Error: no password submitted. -->
       
    51             Error: Enter your password.
       
    52           [% END %]
       
    53           [% IF err_newpassword %]
       
    54             <!-- Error: at least one of the new password fields was empty. -->
       
    55             Error: Enter your new password twice.
       
    56           [% END %]
       
    57           [% IF err_newpassword_match %]
       
    58             <!-- Error: new passwords do not match. -->
       
    59             Error: The two entries for your new password must match.
       
    60           [% END %]
       
    61 
       
    62           [% IF err_loginfailed %]
       
    63             <!-- Error: login failed. -->
       
    64             Error: You entered an incorrect username or password (or both).
       
    65           [% END %]
       
    66 
       
    67           [% IF err_rejected %]
       
    68             <!-- Error: user principal rejected. -->
       
    69             Error: That username may not authenticate to this service.
       
    70           [% END %]
       
    71 
       
    72           [% IF err_pwweak %]
       
    73             <!-- Error: password was too weak. -->
       
    74             Error: The password given failed strength checking.
       
    75             Please enter a more difficult password not based on a dictionary
       
    76             word.
       
    77           [% END %]
       
    78 
       
    79           [% IF err_pwchange %]
       
    80             <!-- Error: password change attempted, failed. -->
       
    81             Error: [% err_msg %].
       
    82           [% END %]
       
    83 
       
    84         </strong></p>
       
    85         <p>Click <a href="/help.html">help</a> for assistance.</p>
       
    86       </div>
       
    87     [% END %]
       
    88 
       
    89     <div class="loginbox" align="center">
       
    90       <table border="1" width="70%">
       
    91         [% IF success %]
       
    92           <tr>
       
    93             <td><img alt="Confirm" src="/images/confirm.png"
       
    94                      width="160" height="160"/></td>
       
    95             <td>
       
    96               <div class="logintext">
       
    97                 <p>You have successfully changed your password.</p>
       
    98                 <p><strong>Protect your assets:</strong><br/>
       
    99                    Quit your web browser when you are finished (see below
       
   100                    for more details)</p>
       
   101               </div>
       
   102             </td>
       
   103           </tr>
       
   104         [% ELSE %]
       
   105           <tr>
       
   106             <td><img alt="Login" src="/images/login.png"
       
   107                      width="160" height="160"/></td>
       
   108             <td>
       
   109               <div class="loginform">
       
   110                 <form name="pwchange"
       
   111                       action="[% script_name FILTER html %]"
       
   112                       method="post" autocomplete="OFF"
       
   113                       enctype="application/x-www-form-urlencoded">
       
   114                   <input type="hidden" name="rm" value="pwchange">
       
   115                   <input type="hidden" name="RT"
       
   116                          value="[% RT FILTER html %]">
       
   117                   <input type="hidden" name="ST"
       
   118                          value="[% ST FILTER html %]">
       
   119                   <input type="hidden" name="CPT"
       
   120                          value="[% CPT FILTER html %]">
       
   121                   <input type="hidden" name="changepw" value="yes">
       
   122                   <input type="hidden" name="expired"
       
   123                          value="[% expired FILTER html %]">
       
   124                   [% IF skip_username %]
       
   125                     <input type="hidden" name="username"
       
   126                            value="[% username FILTER html %]">
       
   127                     <input type="hidden" name="skip_username" value="1">
       
   128                   [% END %]
       
   129                   <table>
       
   130                     [% UNLESS skip_username %]
       
   131                       <tr>
       
   132                         <td><strong>Username:</strong></td>
       
   133                         <td><input name="username" type="text"
       
   134                                    value="[% username FILTER html %]"
       
   135                                    size="18"><br/></td>
       
   136                       </tr>
       
   137                     [% END %]
       
   138                     [% UNLESS skip_password %]
       
   139                       <tr>
       
   140                         <td><strong>Old Password:</strong></td>
       
   141                         <td><input name="password" type="password" size="18"></td>
       
   142                       </tr>
       
   143                     [% END %]
       
   144                     <tr>
       
   145                       <td><strong>New Password (enter twice):</strong></td>
       
   146                       <td>
       
   147                           <input name="new_passwd1" type="password" size="18"><br/>
       
   148                           <input name="new_passwd2" type="password" size="18">
       
   149                       </td>
       
   150                     </tr>
       
   151                     <tr>
       
   152                       <td colspan="2" align="right">
       
   153                         <input type="submit" name="Submit" value="Change Password">
       
   154                       </td>
       
   155                     </tr>
       
   156                   </table>
       
   157                 </form>
       
   158               </div>
       
   159               <div class="loginlinks">
       
   160                 <a href="/help.html">help</a>
       
   161               </div>
       
   162             </td>
       
   163           </tr>
       
   164         [% END %]
       
   165       </table>
       
   166     </div>
       
   167 
       
   168     <div class="trailer">
       
   169       <h2>Caution:</h2>
       
   170 
       
   171       <p>Never enter your WebAuth username and password on a web page
       
   172       unless the page is a page directly served by the WebAuth login
       
   173       server.</p>
       
   174     </div>
       
   175   </body>
       
   176 </html>