Skip to:
Content
Pages
Categories
Search
Top
Bottom

Missing Password Validation


  • devnik
    Participant

    @devnik

    Hi,

    Wordpress Version: 5.0.3
    Buddypress Version: 4.1.0

    I want to validate the password if the User change the password in his profile settings but I didn’t found a way to implement custom password validation functions.

    In WordPress core it exists the following hooks:

    /**
    		 * Password validation
    		 */
    		add_action( 'user_profile_update_errors', array($this,'validateProfileUpdate'), 10, 3 );
    		add_filter( 'registration_errors', array($this,'validateRegistration'), 10, 3 );
    		add_action( 'validate_password_reset', array($this,'validatePasswordReset'), 10, 2 );

    Is there a way to hook before the profile settings are updated – specially for the password field.

Viewing 1 replies (of 1 total)

  • Venutius
    Moderator

    @venutius

    Unfortunately there’s not a before save hook for this, only after save. I guess what you could do is wait until it’s saved then validate the password but that sounds like it’s not going to give the desired UI experience. Maybe you could ask for a hook to be added?

    https://buddypress.trac.wordpress.org/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar