diff --git src/wp-admin/css/forms.css src/wp-admin/css/forms.css
index d1ec601..57fb1bb 100644
|
|
|
table.form-table td .updated p { |
| 1302 | 1302 | top: 0; |
| 1303 | 1303 | } |
| 1304 | 1304 | |
| | 1305 | .login-action-rp .wp-pwd button.button{ |
| | 1306 | background: #f7f7f7 none repeat scroll 0 0; |
| | 1307 | border:1px solid #ccc; |
| | 1308 | padding: 0 10px; |
| | 1309 | } |
| | 1310 | |
| | 1311 | .login-action-rp .wp-pwd button.button { |
| | 1312 | right: 30px; |
| | 1313 | } |
| | 1314 | |
| 1305 | 1315 | .wp-pwd button.button:hover, |
| 1306 | 1316 | .wp-pwd button.button:focus, |
| 1307 | 1317 | .wp-pwd button.button:active { |
diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index 750921b..bcebc15 100644
|
|
|
p { |
| 206 | 206 | font-family: sans-serif; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | | .login-action-rp input[type="text"] { |
| 210 | | -webkit-box-shadow: none; |
| 211 | | box-shadow: none; |
| 212 | | margin: 0; |
| 213 | | } |
| | 209 | .login-action-rp input[type="text"] |
| | 210 | .login-action-rp input[type="text"], |
| | 211 | .login-action-rp input[type="password"] { |
| | 212 | -webkit-box-shadow: none; |
| | 213 | box-shadow: none; |
| | 214 | margin: 0; |
| | 215 | font-size: 15px; |
| | 216 | } |
| | 217 | |
| | 218 | .login-action-rp .wp-pwd .input, |
| | 219 | .login-action-rp .wp-pwd #pass-strength-result{ |
| | 220 | width: 69%; |
| | 221 | } |
| | 222 | |
| | 223 | .login-action-rp .wp-pwd{ |
| | 224 | margin-top: 5px; |
| | 225 | } |
| | 226 | |
| | 227 | .login-action-rp .pw-weak{ |
| | 228 | margin-bottom: 10px; |
| | 229 | } |
| 214 | 230 | |
| 215 | 231 | .login #pass-strength-result { |
| 216 | 232 | font-weight: 600; |
diff --git src/wp-admin/js/user-profile.js src/wp-admin/js/user-profile.js
index e591cb5..bc360ed 100644
|
|
|
|
| 85 | 85 | |
| 86 | 86 | if ( passStrength.className ) { |
| 87 | 87 | $pass1.add( $pass1Text ).addClass( passStrength.className ); |
| 88 | | if ( 'short' === passStrength.className || 'bad' === passStrength.className ) { |
| | 88 | if ( $(passStrength).is('.short, .bad') ) { |
| 89 | 89 | if ( ! $weakCheckbox.prop( 'checked' ) ) { |
| 90 | 90 | $submitButtons.prop( 'disabled', true ); |
| 91 | 91 | } |
| … |
… |
|
| 158 | 158 | $cancelButton; |
| 159 | 159 | |
| 160 | 160 | $pass1Row = $('.user-pass1-wrap'); |
| 161 | | $pass1Label = $pass1Row.find('th label').attr( 'for', 'pass1-text' ); |
| | 161 | $pass1Label = $pass1Row.find('label').attr( 'for', 'pass1-text' ); |
| 162 | 162 | |
| 163 | 163 | // hide this |
| 164 | 164 | $('.user-pass2-wrap').hide(); |
| 165 | 165 | |
| 166 | | $submitButton = $( '#submit' ).on( 'click', function () { |
| | 166 | $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { |
| 167 | 167 | updateLock = false; |
| 168 | 168 | }); |
| 169 | 169 | |
diff --git src/wp-login.php src/wp-login.php
index 6500fd9..5a96854 100644
|
|
|
case 'rp' : |
| 627 | 627 | <span class="password-input-wrapper"> |
| 628 | 628 | <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" /> |
| 629 | 629 | </span> |
| | 630 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> |
| | 631 | <span class="dashicons dashicons-hidden"></span> |
| | 632 | <span class="text"><?php _e( 'Hide' ); ?></span> |
| | 633 | </button> |
| 630 | 634 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
| 631 | 635 | </div> |
| 632 | 636 | </div> |
| … |
… |
case 'rp' : |
| 635 | 639 | <label for="pass2"><?php _e( 'Confirm new password' ) ?></label><br /> |
| 636 | 640 | <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> |
| 637 | 641 | </p> |
| | 642 | <div class="pw-weak"> |
| | 643 | <label> |
| | 644 | <input type="checkbox" name="pw_weak" class="pw-checkbox" /> |
| | 645 | <?php _e( 'Confirm use of weak password' ); ?> |
| | 646 | </label> |
| | 647 | </div> |
| 638 | 648 | |
| 639 | 649 | <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> |
| 640 | 650 | <br class="clear" /> |