Make WordPress Core


Ignore:
Timestamp:
04/08/2022 05:38:55 PM (2 years ago)
Author:
joedolson
Message:

Users: Use autocomplete values on user profiles.

Assign appropriate autocomplete values for new and edited user, user email, and password fields.

Props clonemykey, sabernhardt, WraithKenny, bookdude13, konradyoast.
Fixes #43886, #52714.

File:
1 edited

Legend:

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

    r53068 r53111  
    952952
    953953                <div class="wp-pwd">
    954                     <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" />
     954                    <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="new-password" aria-describedby="pass-strength-result" />
    955955
    956956                    <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
     
    967967            <p class="user-pass2-wrap">
    968968                <label for="pass2"><?php _e( 'Confirm new password' ); ?></label>
    969                 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
     969                <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="new-password" />
    970970            </p>
    971971
Note: See TracChangeset for help on using the changeset viewer.