• Resolved yano23

    (@yano23)


    Hi,
    I lowered password strength to level 2.
    Problem is there seem to be 2 weak levels, first says “Weak, please enter a stronger password”, the second one says “Weak”.

    When only “Weak” is being shown, the user is allowed to register.

    The second should say “Weak, but accepted”.

    Both weak options appear under ‘bad’ => __( ”, ‘theme-domain’ )

    Can you see the problem?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @yano23,

    Can you try this with a default theme, such as Storefront, as well?
    The reason is that I’m unable to find or duplicate the behavior you’re showing.

    In fact, this goes back to WordPress, where I’m seeing the following conditions:

    array(
       'unknown'  => _x( 'Password strength unknown', 'password strength' ),
          'short'    => _x( 'Very weak', 'password strength' ),
          'bad'      => _x( 'Weak', 'password strength' ),
          'good'     => _x( 'Medium', 'password strength' ),
          'strong'   => _x( 'Strong', 'password strength' ),
          'mismatch' => _x( 'Mismatch', 'password mismatch' ),
    )

    As you can see, I’m not seeing the same options you’re reporting. Because of this, I believe it could be overriding this in either your theme or an additional plugin.

    Thank you,
    Joey

    Thread Starter yano23

    (@yano23)

    Hi Joey, thanks for the reply.

    I’ve tried in Storefront, it follows the same pattern. The problem happens when adding
    add_filter( 'woocommerce_min_password_strength', create_function( '', 'return 2;' ) );
    Then this new “Weak” level (which is strong enough to be accepted) appears.

    If I translate string “Weak” to “Weak, but accepted”, then the string “Weak – Please enter a stronger password.” would read as “Weak, but accepted – Please enter a stronger password.”

    I hope I could explain it well.

    Here’s a screen recording:

    Hi @yano23,

    Thank you for that information!

    I’d suggest you take a look at this example: https://stackoverflow.com/questions/43899310/change-woocommerce-default-password-security-level
    This would be considered a customization, so we aren’t able to assist in the development. Nonetheless, I hope that helps with the issue you’re seeing.

    Additionally, the correct forum for you question would be here: https://www.ads-software.com/support/forum/wp-advanced/
    You’ll be able to get a much more detailed response in regards to password strength, etc., over there.

    If you have any further questions, please let us know!

    Thank you,
    Joey

    Thread Starter yano23

    (@yano23)

    Hi @jricketts4 ,

    Thanks for the follow up and good information.
    I think it’s becoming too much of a trouble, will live with it.

    Best regards!

    Hi @yano23,

    I’m sorry to hear that, but I totally understand.
    I would still suggest you reach out on that forum, as someone there may have a more elegant solution than the Stack Overflow link.

    Nonetheless, please let us know if you need anything further!

    Thank you,
    Joey

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Password strength same text for different levels’ is closed to new replies.