Make WordPress Core

Ticket #37674: 37674.patch

File 37674.patch, 1.4 KB (added by achbed, 7 years ago)
  • wp-login.php

     
    629629
    630630        login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
    631631
     632        $genpw_length = apply_filters( 'resetpass-gen-length', 16 );
    632633?>
    633634<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
    634635        <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
     
    640641
    641642                <div class="wp-pwd">
    642643                        <span class="password-input-wrapper">
    643                                 <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" />
     644                                <input type="password" data-reveal="1" data-pw="<?php if ( $genpw_length > 0 ) echo esc_attr( wp_generate_password( $genpw_length ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
    644645                        </span>
    645646                        <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
    646647                </div>