Make WordPress Core


Ignore:
Timestamp:
07/01/2015 02:47:24 PM (10 years ago)
Author:
markjaquith
Message:

New password change/set UI.

  • Generate the password for the user
  • More tightly integrate password strength meter
  • Warn on weak passwords

see #32589

props MikeHansenMe, adamsilverstein, binarykitten

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r33019 r33023  
    653653    <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
    654654
    655     <p>
    656         <label for="pass1"><?php _e('New password') ?><br />
    657         <input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" /></label>
     655    <p class="user-pass1-wrap">
     656        <label for="pass1"><?php _e('New password') ?></label><br />
     657        <div class="wp-pwd">
     658            <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" />
     659        </div>
    658660    </p>
    659     <p>
    660         <label for="pass2"><?php _e('Confirm new password') ?><br />
    661         <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /></label>
     661    <p class="user-pass2-wrap">
     662        <label for="pass2"><?php _e('Confirm new password') ?></label><br />
     663        <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
    662664    </p>
    663665
Note: See TracChangeset for help on using the changeset viewer.