diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
index 6b36d20..24ee750 100644
a
|
b
|
fieldset label, |
479 | 479 | opacity: 1; |
480 | 480 | } |
481 | 481 | |
482 | | #pass1.short, #pass1-text.short { |
483 | | border-color: #e35b5b; |
484 | | } |
485 | | |
486 | | #pass1.bad, #pass1-text.bad { |
487 | | border-color: #f78b53; |
488 | | } |
489 | | |
490 | | #pass1.good, #pass1-text.good { |
491 | | border-color: #ffc733; |
492 | | } |
493 | | |
494 | | #pass1.strong, #pass1-text.strong { |
495 | | border-color: #83c373; |
496 | | } |
497 | | |
498 | 482 | .pw-weak { |
499 | 483 | display:none; |
500 | 484 | } |
diff --git a/src/wp-admin/css/login.css b/src/wp-admin/css/login.css
index 5da174c..fba7f5f 100644
a
|
b
|
p { |
220 | 220 | |
221 | 221 | .login #pass-strength-result { |
222 | 222 | font-weight: 600; |
223 | | margin: -1px 5px 16px 0; |
| 223 | margin: 8px 5px 16px 0; |
224 | 224 | padding: 6px 5px; |
225 | 225 | text-align: center; |
226 | 226 | width: 100%; |
diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js
index e95a428..10aeb17 100644
a
|
b
|
|
36 | 36 | $pass1.val( $pass1.data( 'pw' ) ); |
37 | 37 | $pass1.trigger( 'pwupdate' ); |
38 | 38 | showOrHideWeakPasswordCheckbox(); |
| 39 | showOrHidePasswordHint(); |
39 | 40 | } |
40 | 41 | else { |
41 | 42 | // zxcvbn loaded after the user entered password, check strength. |
42 | 43 | check_pass_strength(); |
43 | 44 | showOrHideWeakPasswordCheckbox(); |
| 45 | showOrHidePasswordHint(); |
44 | 46 | } |
45 | 47 | |
46 | 48 | if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) { |
… |
… |
|
93 | 95 | } |
94 | 96 | $pass1.add( $pass1Text ).removeClass( 'short bad good strong' ); |
95 | 97 | showOrHideWeakPasswordCheckbox(); |
| 98 | showOrHidePasswordHint(); |
96 | 99 | } ); |
97 | 100 | } |
98 | 101 | |
… |
… |
|
326 | 329 | } |
327 | 330 | } |
328 | 331 | |
| 332 | function showOrHidePasswordHint() { |
| 333 | $( '.indicator-hint' ).toggle( $( '#pass-strength-result' ).is( '.short, .bad' ) ); |
| 334 | } |
| 335 | |
329 | 336 | $(document).ready( function() { |
330 | 337 | var $colorpicker, $stylesheet, user_id, current_user_id, |
331 | 338 | select = $( '#display_name' ), |
diff --git a/src/wp-login.php b/src/wp-login.php
index e237665..08a0891 100644
a
|
b
|
case 'retrievepassword' : |
557 | 557 | */ |
558 | 558 | do_action( 'lostpassword_form' ); ?> |
559 | 559 | <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> |
560 | | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Get New Password'); ?>" /></p> |
| 560 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Start Password Reset'); ?>" /></p> |
561 | 561 | </form> |
562 | 562 | |
563 | 563 | <p id="nav"> |
… |
… |
case 'rp' : |
626 | 626 | if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { |
627 | 627 | reset_password($user, $_POST['pass1']); |
628 | 628 | setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); |
629 | | login_header( __( 'Password Reset' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' ); |
| 629 | $new_pass_login_url = add_query_arg( array( 'reset-pass' => 'success' ), wp_login_url() ); |
| 630 | login_header( __( 'Password Reset' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( $new_pass_login_url ) . '">' . __( 'Log in' ) . '</a></p>' ); |
630 | 631 | login_footer(); |
631 | 632 | exit; |
632 | 633 | } |
… |
… |
case 'rp' : |
634 | 635 | wp_enqueue_script('utils'); |
635 | 636 | wp_enqueue_script('user-profile'); |
636 | 637 | |
637 | | login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors ); |
| 638 | login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password or use the suggested password.') . '</p>', $errors ); |
638 | 639 | |
639 | 640 | ?> |
640 | 641 | <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off"> |
… |
… |
case 'rp' : |
681 | 682 | do_action( 'resetpass_form', $user ); |
682 | 683 | ?> |
683 | 684 | <input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" /> |
684 | | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p> |
| 685 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Confirm Password Change'); ?>" /></p> |
685 | 686 | </form> |
686 | 687 | |
687 | 688 | <p id="nav"> |
… |
… |
default: |
891 | 892 | $errors->add('newpass', __('Check your email for your new password.'), 'message'); |
892 | 893 | elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) |
893 | 894 | $errors->add('registered', __('Registration complete. Please check your email.'), 'message'); |
| 895 | elseif ( isset($_GET['reset-pass']) && 'success' == $_GET['reset-pass'] ) |
| 896 | $errors->add('passreset', __('Using your new password, log in below.'), 'message'); |
894 | 897 | elseif ( strpos( $redirect_to, 'about.php?updated' ) ) |
895 | 898 | $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.' ), 'message' ); |
896 | 899 | } |