diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index 750921b..4aaefce 100644
|
|
p { |
83 | 83 | padding: 0; |
84 | 84 | } |
85 | 85 | |
| 86 | .login .password-input-wrapper { |
| 87 | display: table; |
| 88 | } |
| 89 | |
| 90 | .login .input.password-input { |
| 91 | display: table-cell; |
| 92 | margin: 0; |
| 93 | } |
| 94 | |
| 95 | .login .pw-weak { |
| 96 | margin-bottom: 15px; |
| 97 | } |
| 98 | |
| 99 | .login .button.button-secondary { |
| 100 | display: table-cell; |
| 101 | border-radius: 0; |
| 102 | vertical-align: middle; |
| 103 | } |
| 104 | |
86 | 105 | .login form { |
87 | 106 | margin-top: 20px; |
88 | 107 | margin-left: 0; |
diff --git src/wp-admin/js/user-profile.js src/wp-admin/js/user-profile.js
index e591cb5..21e7830 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 | } |
… |
… |
|
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..63715b1 100644
|
|
case 'rp' : |
624 | 624 | </p> |
625 | 625 | |
626 | 626 | <div class="wp-pwd"> |
627 | | <span class="password-input-wrapper"> |
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 | | </span> |
| 627 | <div class="password-input-wrapper"> |
| 628 | <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="20" value="" autocomplete="off" aria-describedby="pass-strength-result" /> |
| 629 | <span class="button button-secondary wp-hide-pw hide-if-no-js"> |
| 630 | <span class="dashicons dashicons-hidden"></span> |
| 631 | </span> |
| 632 | </div> |
630 | 633 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
631 | 634 | </div> |
| 635 | <div class="pw-weak"> |
| 636 | <p><?php _e( 'Confirm Password' ); ?></p> |
| 637 | <label> |
| 638 | <input type="checkbox" name="pw_weak" class="pw-checkbox" /> |
| 639 | <?php _e( 'Confirm use of weak password' ); ?> |
| 640 | </label> |
| 641 | </div> |
632 | 642 | </div> |
633 | 643 | |
634 | 644 | <p class="user-pass2-wrap"> |