Code

Updated System Managenemt
[gosa.git] / gosa-plugins / systems / admin / systems / password.tpl
index 9668cf07cf950d543a9d67a22cea81b6dff2287e..b55885f8f11d559116c87801ebcaba8d0f4755b8 100644 (file)
@@ -1,3 +1,4 @@
+<script type="text/javascript" src="include/pwdStrength.js"></script>
 <p>
  {t}To change the terminal root password use the fields below. The changes take effect during the next reboot. Please memorize the new password, because you wouldn't be able to log in.{/t}
 </p>
@@ -13,6 +14,7 @@
   <tr>
     <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
     <td><input id="new_password" type="password" name="new_password" size="30" maxlength="40"
+               onkeyup="testPasswordCss(document.getElementById('new_password').value);"
                onFocus="nextfield= 'repeated_password';"></td>
   </tr>
   <tr>
     <td><input type="password" id="repeated_password" name="repeated_password" size="30" maxlength="40"
                onFocus="nextfield= 'password_finish';"></td>
   </tr>
+  <tr>
+       <td>{t}Password strength{/t}</td>
+       <td>
+        <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:5px;">
+        <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:5px;"></span></span>
+       </td>
+      </tr>
 </table>
 
 <br>
@@ -31,7 +41,7 @@
 </p>
 
 <!-- Place cursor -->
-<script language="JavaScript" type="text/javascript">
+<script language="JavaScript" type="text/javascript">  
   <!-- // First input field on page
        nextfield= 'new_password';
        focus_field('new_password');