diff --git a/gosa-core/ihtml/themes/default/password.tpl b/gosa-core/ihtml/themes/default/password.tpl
index 1553ead412c8d272e734d7e7315df6adbcd91cc2..e7a3b87f3446fe55b2ceabae29a952fb4603e8c3 100644 (file)
<link rel="shortcut icon" href="favicon.ico">
{if isset($ieworkaround)}<script language="javascript"src="include/png.js" type="text/javascript"></script>{/if}
- <script language="javascript"src="include/focus.js" type="text/javascript"></script>
- <script language="javascript"src="include/warning.js" type="text/javascript"></script>
+ <script language="javascript" src="include/focus.js" type="text/javascript"></script>
+ <script language="javascript" src="include/warning.js" type="text/javascript"></script>
+ <script language="javascript" src="include/pwdStrength.js" type="text/javascript"></script>
</head>
<body style='height:100%; width:100%;'>
<tr>
<td>{t}Username{/t}</td>
<td>{if $display_username}
- <input type='text' name='uid' maxlength='25' value='{$uid}' title='{t}Username{/t}' onFocus="nextfield= 'current_password';">
+ <input type='text' name='uid' maxlength='40' value='{$uid}' title='{t}Username{/t}' onFocus="nextfield= 'current_password';">
{else}
<i>{$uid}</i>
{/if}
</tr>
<tr>
<td>{t}Current password{/t}</td>
- <td><input type='password' name='current_password' maxlength='25' value='' title='{t}Current password{/t}' onFocus="nextfield= 'new_password';"></td>
+ <td><input type='password' name='current_password' maxlength='40' value='' title='{t}Current password{/t}' onFocus="nextfield= 'new_password';"></td>
</tr>
<tr>
<td>{t}New password{/t}</td>
- <td><input type='password' name='new_password' maxlength='25' value='' title='{t}New password{/t}' onFocus="nextfield= 'new_password_repeated';"></td>
+ <td><input type='password' name='new_password' id="new_password" maxlength='40' value='' title='{t}New password{/t}' onFocus="nextfield= 'new_password_repeated';" onkeyup="testPasswordCss(document.getElementById('new_password').value);"></td>
</tr>
<tr>
- <td>{t}New password{/t} ({t}again{/t})</td>
- <td><input type='password' name='new_password_repeated' maxlength='25' value='' title='{t}New password repeated{/t}' onFocus="nextfield= 'apply';"></td>
+ <td>{t}New password repeated{/t}</td>
+ <td><input type='password' name='new_password_repeated' maxlength='40' value='' title='{t}New password repeated{/t}' onFocus="nextfield= 'apply';"></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>
<div class="ruler"></div>
<div class="change">
- <input type='submit' name='apply' value='{t}Change{/t}'
+ <input type='submit' name='apply' value='{t}Change{/t}'
title='{t}Click here to change your password{/t}'>
+ <input type='hidden' id='formSubmit'>
</div>
<!-- check, if cookies are enabled -->
<p class='warning'>