Code

Removed password length restriction
[gosa.git] / gosa-core / ihtml / themes / default / password.tpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2         "http://www.w3.org/TR/html4/transitional.dtd">
3 <html>
5 <head>
6   <title>GOsa - {t}Change your password{/t}</title>
8   <meta name="generator" content="my hands">
9   <meta name="description" content="GOsa - Password changer">
10   <meta name="author" lang="de" content="Cajus Pollmeier">
12   <meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT">
13   <meta http-equiv="Last-Modified" content="{$date} GMT">
14   <meta http-equiv="Cache-Control" content="no-cache">
15   <meta http-equiv="Pragma" content="no-cache">
16   <meta http-equiv="Cache-Control" content="post-check=0, pre-check=0">
17   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
19   <style type="text/css">@import url('themes/default/style.css');</style>
20   <style type="text/css">@import url('themes/default/password-style.css');</style>
21   <link rel="shortcut icon" href="favicon.ico">
23   {if isset($ieworkaround)}<script language="javascript"src="include/png.js" type="text/javascript"></script>{/if}
24   <script language="javascript" src="include/prototype.js" type="text/javascript"></script>
25   <script language="javascript" src="include/gosa.js" type="text/javascript"></script>
26   <script language="javascript" src="include/pwdStrength.js" type="text/javascript"></script>
27 </head>
29 <body style='height:100%; width:100%;'>
30 {* GOsa login - smarty template *}
31 {$php_errors}
33 {if $changed}
34 <div class='success'>
35 <img class='center' src='images/true.png' alt='{t}Success{/t}' title='{t}Success{/t}'>&nbsp;<b>{t}Your password has been changed successfully.{/t}</b>
36 </div>
37 {else}
38 <form action='password.php{$params}' method='post' name='mainform' onSubmit='js_check(this);return true;'>
39     <h1 class='headline'>
40     <img class='center' src='{$password_img}' alt='{t}Password{/t}' title='{t}Password{/t}'>
41     {t}Password change{/t}
42     </h1>
44     <!-- Display SSL warning message on demand -->
45     <p class='warning'> {$ssl} </p>
46     <input type='hidden' name='javascript' value='false'/>              
48     <!-- Display error message on demand -->
49     <p class='warning'> {$message} </p>
52     <p class="infotext">
53         {t}This dialog provides a simple way to change your password. Enter the current password and the new password (twice) in the fields below and press the 'Change' button.{/t}
54     </p>
56     <div class="ruler"></div>
57     <table>
58       {if $show_directory_chooser}
59       <tr>
60        <td>{t}Directory{/t}</td>
61        <td>
62           <select name='server'  title='{t}Directory{/t}'>
63             {html_options options=$server_options selected=$server_id}
64           </select>
65         </td>
66       </tr>
67       {/if}
68       <tr>
69        <td>{t}Username{/t}</td>
70        <td>{if $display_username}
71            <input type='text' name='uid' maxlength='40' value='{$uid}' title='{t}Username{/t}' onFocus="nextfield= 'current_password';">
72            {else}
73            <i>{$uid}</i>
74            {/if}
75        </td>
76       </tr>
77       <tr>
78        <td>{t}Current password{/t}</td>
79        <td><input type='password' name='current_password' value='' title='{t}Current password{/t}' onFocus="nextfield= 'new_password';"></td>
80       </tr>
81       <tr>
82        <td>{t}New password{/t}</td>
83        <td><input type='password' name='new_password' id="new_password" value='' title='{t}New password{/t}' onFocus="nextfield= 'new_password_repeated';" onkeyup="testPasswordCss(document.getElementById('new_password').value);"></td>
84       </tr>
85       <tr>
86        <td>{t}New password repeated{/t}</td>
87        <td><input type='password' name='new_password_repeated' value='' title='{t}New password repeated{/t}' onFocus="nextfield= 'apply';"></td>
88       </tr>
89       <tr>
90        <td>{t}Password strength{/t}</td>
91        <td>
92         <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:5px;">
93         <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:5px;"></span></span>
94        </td>
95       </tr>
96     </table>
98     <div class="ruler"></div>
100     <div class="change">
101     <input type='submit' name='apply'  value='{t}Change{/t}'
102                  title='{t}Click here to change your password{/t}'>
103     <input type='hidden' id='formSubmit'>
104     </div>
105     <!-- check, if cookies are enabled -->
106     <p class='warning'>
107      <script language="JavaScript" type="text/javascript">
108         <!--
109             document.cookie = "gosatest=empty;path=/";
110             if (document.cookie.indexOf( "gosatest=") > -1 )
111                 document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
112             else
113                 document.write("{$cookies}");
114         -->
115      </script>
116     </p>
118 </form>
120 {/if}
122 {$msg_dialogs}
124 <table class='iesucks'><tr><td>{$errors}</td></tr></table>
126 <!-- Place cursor in username field -->
127 <script language="JavaScript" type="text/javascript">
128   <!-- // First input field on page
129   focus_field('error_accept','uid','directory', 'username', 'current_password');
130   next_msg_dialog();
131   -->
132 </script>
134 </body>
135 </html>