Make WordPress Core


Ignore:
Timestamp:
09/21/2017 09:28:07 PM (7 years ago)
Author:
adamsilverstein
Message:

Login: Password reset - add hide icon & confirm weak password checkbox.

Extends the password features added in 4.3 to the password reset flow.

Props johnbillion, manolis09, umesh.nevase, Nikschavan.

File:
1 edited

Legend:

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

    r41291 r41556  
    645645
    646646        <div class="wp-pwd">
    647             <span class="password-input-wrapper">
    648                 <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" />
    649             </span>
     647            <div class="password-input-wrapper">
     648                <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" />
     649                <span class="button button-secondary wp-hide-pw hide-if-no-js">
     650                    <span class="dashicons dashicons-hidden"></span>
     651                </span>
     652            </div>
    650653            <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
     654        </div>
     655        <div class="pw-weak">
     656            <label>
     657                <input type="checkbox" name="pw_weak" class="pw-checkbox" />
     658                <?php _e( 'Confirm use of weak password' ); ?>
     659            </label>
    651660        </div>
    652661    </div>
Note: See TracChangeset for help on using the changeset viewer.