diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index 0a652d6..095b4df 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; |
85 | | padding: 26px 24px 46px; |
| 104 | padding: 26px 12px 46px; |
86 | 105 | font-weight: 400; |
87 | 106 | overflow: hidden; |
88 | 107 | background: #fff; |
… |
… |
p { |
100 | 119 | float: right; |
101 | 120 | } |
102 | 121 | |
| 122 | .login .password-input-wrapper .dashicons { |
| 123 | vertical-align: middle; |
| 124 | } |
| 125 | |
103 | 126 | #login form p { |
104 | 127 | margin-bottom: 0; |
105 | 128 | } |
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 91da512..931eaa0 100644
|
|
case 'rp' : |
630 | 630 | </p> |
631 | 631 | |
632 | 632 | <div class="wp-pwd"> |
633 | | <span class="password-input-wrapper"> |
634 | | <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" /> |
635 | | </span> |
| 633 | <div class="password-input-wrapper"> |
| 634 | <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" /> |
| 635 | <span class="button button-secondary wp-hide-pw hide-if-no-js"> |
| 636 | <span class="dashicons dashicons-hidden"></span> |
| 637 | </span> |
| 638 | </div> |
636 | 639 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
637 | 640 | </div> |
| 641 | <div class="pw-weak"> |
| 642 | <label> |
| 643 | <input type="checkbox" name="pw_weak" class="pw-checkbox" /> |
| 644 | <?php _e( 'Confirm use of weak password' ); ?> |
| 645 | </label> |
| 646 | </div> |
638 | 647 | </div> |
639 | 648 | |
640 | 649 | <p class="user-pass2-wrap"> |