Skip to:
Content
Pages
Categories
Search
Top
Bottom

Force strong password in Registration

  • @sx1001

    Participant

    Hi all,
    I want to force my members to use strong passwords.
    Is there any way to do so?

    I found this one:

    Force strong password BuddyPress plugin

    It works using custom functions for registration only – I want to make it work also for the “change password” form for logged-in users.

    But cant figure out the appropriate Hook to use for it.
    Any ideas?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • @iamthewebb

    Participant

    There should be plugins to handle this and I don’t think password is specifically part of BP so you may have more luck searching for wordpress solutions, I’ve customised the code on the following site in the past and it worked well https://sltaylor.co.uk/blog/enforce-strong-wordpress-passwords/

    @sx1001

    Participant

    Thanks, but it seems, that the BP form to change your profile is somehow altered and not the “original” WP form to change user settings, hence theres no check right now 🙁 Also “Force Strong Passwords” doesnt do anything, I can simply submit a weak password…

    @sx1001

    Participant

    See, the plugin doesnt work on “password change” for existing users:
    https://wordpress.org/support/plugin/force-strong-passwords/

    🙁

    @sx1001

    Participant

    I meant this link here: https://wordpress.org/support/topic/buddypress-profile-change-password-skipped/
    Here someone is complaining about it as well.
    So right now, no solution on the internet 🙁

    @nefi85

    Participant

    Does anyone already have a solution? i have the same problem too

    @ppp12345

    Participant

    Anyone?

    @imath

    Moderator

    If you need to force strong password, you can simply disable the checkbox that is allowing the use of weak passwords, eg:

    
    function no_weak_password_checkbox() {
    	wp_add_inline_script( 'bp-nouveau', '
    		( function() {
    			document.querySelector( \'.pw-weak\').remove();
    		} )();
    	');
    }
    add_action( 'bp_enqueue_scripts', 'no_weak_password_checkbox' );
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Force strong password in Registration’ is closed to new replies.
Skip to toolbar