Clean up user-edit.php, add password strength meter to Add User and Edit User

git-svn-id: https://develop.svn.wordpress.org/trunk@11359 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-05-16 06:29:10 +00:00
parent 6a66b51970
commit f4c925859a
3 changed files with 27 additions and 30 deletions
+6 -1
View File
@@ -37,6 +37,8 @@ $title = __('Add New User');
$parent_file = 'users.php';
wp_enqueue_script('wp-ajax-response');
wp_enqueue_script('user-profile');
wp_enqueue_script('password-strength-meter');
require_once ('admin-header.php');
@@ -117,7 +119,10 @@ $new_user_send_password = !$_POST || isset($_POST['send_password']);
<th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php _e('(twice, required)'); ?></span></label></th>
<td><input name="pass1" type="password" id="pass1" autocomplete="off" />
<br />
<input name="pass2" type="password" id="pass2" autocomplete="off"/></td>
<input name="pass2" type="password" id="pass2" autocomplete="off"/>
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
<p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
</td>
</tr>
<tr>
<th scope="row"><label for="send_password"><?php _e('Send Password?') ?></label></th>