diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index 0a652d6..9715a24 100644
|
|
p { |
79 | 79 | padding: 0; |
80 | 80 | } |
81 | 81 | |
| 82 | .login .password-input-wrapper { |
| 83 | display: table; |
| 84 | } |
| 85 | |
| 86 | .login .input.password-input { |
| 87 | display: table-cell; |
| 88 | margin: 0; |
| 89 | } |
| 90 | |
| 91 | .login .pw-weak { |
| 92 | margin-bottom: 15px; |
| 93 | } |
| 94 | |
| 95 | .login .button.button-secondary { |
| 96 | display: table-cell; |
| 97 | border-radius: 0; |
| 98 | vertical-align: middle; |
| 99 | } |
| 100 | |
82 | 101 | .login form { |
83 | 102 | margin-top: 20px; |
84 | 103 | margin-left: 0; |
diff --git src/wp-admin/js/user-profile.js src/wp-admin/js/user-profile.js
index 650fbd5..fdde714 100644
|
|
|
161 | 161 | // hide this |
162 | 162 | $('.user-pass2-wrap').hide(); |
163 | 163 | |
164 | | $submitButton = $( '#submit' ).on( 'click', function () { |
| 164 | $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { |
165 | 165 | updateLock = false; |
166 | 166 | }); |
167 | 167 | |
… |
… |
|
314 | 314 | |
315 | 315 | if ( passStrength.className ) { |
316 | 316 | $pass1.add( $pass1Text ).addClass( passStrength.className ); |
317 | | if ( 'short' === passStrength.className || 'bad' === passStrength.className ) { |
| 317 | if ( $( passStrength ).is( '.short, .bad' ) ) { |
318 | 318 | if ( ! $weakCheckbox.prop( 'checked' ) ) { |
319 | 319 | $submitButtons.prop( 'disabled', true ); |
320 | 320 | } |
diff --git src/wp-login.php src/wp-login.php
index d21ce15..eb3914c 100644
|
|
case 'rp' : |
633 | 633 | </p> |
634 | 634 | |
635 | 635 | <div class="wp-pwd"> |
636 | | <span class="password-input-wrapper"> |
637 | | <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" /> |
638 | | </span> |
| 636 | <div class="password-input-wrapper"> |
| 637 | <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" /> |
| 638 | <span class="button button-secondary wp-hide-pw hide-if-no-js"> |
| 639 | <span class="dashicons dashicons-hidden"></span> |
| 640 | </span> |
| 641 | </div> |
639 | 642 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
640 | 643 | </div> |
| 644 | <div class="pw-weak"> |
| 645 | <label> |
| 646 | <input type="checkbox" name="pw_weak" class="pw-checkbox" /> |
| 647 | <?php _e( 'Confirm use of weak password' ); ?> |
| 648 | </label> |
| 649 | </div> |
641 | 650 | </div> |
642 | 651 | |
643 | 652 | <p class="user-pass2-wrap"> |