• Resolved safnayardd

    (@safnayardd)


    Hi,
    issue regarding the user registration, i am using wooocmmerce default registration form on my account page. users can enter any type of password like “123” without any security instructions like password must be 12 charachters or weak password and so on…how could i fix atleast say please enter 12 charcahters password..

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You can try this snippet:

    add_filter( 'woocommerce_min_password_strength', 'custom_password_strength', 100 );
    function custom_password_strength( $strength ) {
      // 3 strong = default, 2 medium, 1 weak or anything
      return 2;
    }

    WooCommerce uses “3” by default, so something in your setup is changing it to “1”. Have a look in your theme’s functions.php. Or it could be in your theme – ask theme support. Check your theme’s settings. If you can find the snippet that changes the password strength form “3” to “1” just delete it.

    Password strength is calculated by several factors, not just the number of characters, so you’ll not be able to set it to 12 characters. Your choices are strong, medium or weak.

    There are password plugins with additional features, but if you can set the strength to “2” or “3” I think you will be satisfied.

Viewing 1 replies (of 1 total)
  • The topic ‘Password security’ is closed to new replies.