vico vico - 1 year ago 150
PHP Question

WooCommerce password strength Change to 6 Char

Like everyone else the password strength gets alittle ridiculous for the customers to handle. so I used the following which REMOVED all password check ("1" is now a valid password)

function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );

it is a script based, is there a way not touching the script to make it only require atleast 6 char?

Answer Source

What I did was a workaround of this code above which completely removed the password check.

But also attaching a jquery and html password strength script (custom) so the frontend still see a password strength indicator but is turned down to 8 character.

This way you can still prevent users from entering 12 as password but also not do something crazy that will reach the wordpress standard of "safe".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download