Make WordPress Core


Ignore:
Timestamp:
06/23/2023 11:07:10 PM (13 months ago)
Author:
joedolson
Message:

Upgrade/Install: Show/hide toggle on password fields.

Add a show/hide toggle for new passwords in initial user creation and database access during install and setup process using the same model as on user profiles. Add a new password toggle script. Change setup config table to two columns, matching the install table layout.

Props xmarcos, matt, markjaquith, nazgul, akbigdog, intoxination, rob1n, MichaelH, empireoflight, rmccue, markoheijnen, r0uter, amansurov, bi0xid, DrewAPicture, Narthur, wpnook, markparnell, costdev, clorith, ryokuhi, sabernhardt, bgoewert, ironprogrammer, adeltahri, joedolson, mukesh27, audrasjb, sergeybiryukov.
Fixes #3534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r55988 r56008  
    571571            <div class="wp-pwd">
    572572                <?php $initial_password = wp_generate_password( 24 ); ?>
    573                 <span class="password-input-wrapper">
     573                <div class="password-input-wrapper">
    574574                    <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    575                 </span>
     575                    <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
     576                </div>
    576577                <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    577578                    <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
    578579                    <span class="text"><?php _e( 'Hide' ); ?></span>
    579580                </button>
    580                 <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
    581581            </div>
    582582        </td>
Note: See TracChangeset for help on using the changeset viewer.