admin管理员组

文章数量:1122846

I have been looking for an answer for a few days digging through hooks and actions.

I just cane seem to find a way to turn down the strength on the reset password page not sure if its through woo-commerce or WP

I have tried the following

add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
    function reduce_woocommerce_min_strength_requirement( $strength ) {
    return 2;
}

add_filter( 'wc_password_strength_meter_params', 'reduce_strength_meter_settings' );
function reduce_strength_meter_settings( $data ) {

    return array_merge( $data, array(
        'min_password_strength' => 2,
        'i18n_password_hint' => 'Change Hint here'
    ) );

}

I have been looking for an answer for a few days digging through hooks and actions.

I just cane seem to find a way to turn down the strength on the reset password page not sure if its through woo-commerce or WP

I have tried the following

add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
    function reduce_woocommerce_min_strength_requirement( $strength ) {
    return 2;
}

add_filter( 'wc_password_strength_meter_params', 'reduce_strength_meter_settings' );
function reduce_strength_meter_settings( $data ) {

    return array_merge( $data, array(
        'min_password_strength' => 2,
        'i18n_password_hint' => 'Change Hint here'
    ) );

}
Share Improve this question asked Feb 6, 2018 at 23:17 Daniel longDaniel long 1 1
  • I have come to find that the site is using a plugin called Theme My Login (TML or tml) and thats were the forgot password stuff is coming from – Daniel long Commented Feb 8, 2018 at 19:10
Add a comment  | 

1 Answer 1

Reset to default 1

You'll find a discussion of how the password strength is computed here: How is password strength calculated? .

As an aside, there is some discussion (one is here: https://nakedsecurity.sophos.com/2015/03/02/why-you-cant-trust-password-strength-meters/ ) that password strength 'analyzers' don't really result in strong passwords.

本文标签: plugin developmentWordPress Reset password Strength set to medium