• I can’t find any informations about how to set the weakness of the woo commerce password in france … so I’m coming to you to have help. Clients complained about it, and already probably missed some sell because of it … I tried this two plugins, without success :

    Woocommerce Enforce Strong Password
    Minimum Password Strength

    Is there any other wait to set the password hardness?

    I’m not 100% sure about it but, it’s not possible with the original setting, right ?

    https://wordpress.org/plugins/woocommerce/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter shk111

    (@shk111)

    Using Woo Commerce 2.6.2

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    You can use the woocommerce_min_password_strength filter for it.
    De default is 3, so you can use the follow code in your theme’s functions.php or writing a custom plugin to achieve it:

    function my_custom_wc_min_password_strength() {
    	return 2;
    }
    
    add_filter( 'woocommerce_min_password_strength', 'my_custom_wc_min_password_strength' );
    
    Thread Starter shk111

    (@shk111)

    Oh! Thank you Claudio for your answer!

    Unfortunatly, you are to me like in chinese language ! I’m pretty beginner but I can/want to learn about it.

    Can you explain more about the “woocommerce_min_password_strength”, please?
    Where can I find it?
    Or should I just copy/paste this code line into my current functions.php (Child theme i guess !?)

    Thanks for your help.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    You just need to add that code to your theme functions.php file. 3 is default strength. 2 is less.

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    Or use a plugin for it.

    Thread Starter shk111

    (@shk111)

    When you mean add the code to the functions.php, is it this one :

    htdocs > wp-includes > functions.php ?

    and add the code anywhere ?

    and where put the number ?:

    function my_custom_wc_min_password_strength(HERE????) {
    return 2; <—–(or here)
    }

    add_filter( ‘woocommerce_min_password_strength’, ‘my_custom_wc_min_password_strength’ );

    Just have to download the functions.php from my Cyberduck, modify an download again ?

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    No that is not where you should place the code. You need to place it somewhere that updates won’t override the changes. This guide will help: https://www.skyverge.com/blog/add-custom-code-to-wordpress/

    Also, you don’t need to change the number – 2 is what you need I believe. After the ‘return’ text is the strength amount.

    This is a bit outside the scope of forum support though, so if you need help with the code then you might want to consider hiring a developer:

    http://jobs.wordpress.net/
    https://codeable.io/

    Thread Starter shk111

    (@shk111)

    I did change by the “claudio sanchez” code, but did not work.
    I installed it into my child theme functions.php
    this one is working:

    /**
    *Reduce the strength requirement on the woocommerce password.
    *
    * Strength Settings
    * 3 = Strong (default)
    * 2 = Medium
    * 1 = Weak
    * 0 = Very Weak / Anything
    */
    function reduce_woocommerce_min_strength_requirement( $strength ) {
    return 2;
    }
    add_filter( ‘woocommerce_min_password_strength’, ‘reduce_woocommerce_min_strength_requirement’ );

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Looks fine to me.

    Not even Claudio Sanches’s code worked for me.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Weakness of the password’ is closed to new replies.