Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Confirm Password from Registration


  • metalhead505
    Participant

    @metalhead505

    I want to remove the “Confirm Password” input from the BP registration form. That way, new users can just enter their password once and sign up faster.

    I can hide “Confirm Password:” with CSS, but then the form validation will find the field empty.

    The best way to resolve this, I think, is to automatically copy whatever the user typed in the 1st password field over to the confirm password field – either as they type it, or when they click “Finished.”

    Has anyone done this? Tried it? How did it work out? How did you do it?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Venutius
    Moderator

    @venutius

    Hi there, What BP Theme are you using? For BP Legacy you could get around this with the following code:

    function bpex_password_validate() {
    	if ( isset( $_POST['signup_password'] ) ) {
    		$_POST['signup_password_confirm'] = $_POST['signup_password'];
    	}
    }
    add_action( 'bp_signup_pre_validate', 'bpex_password_validate' );

    metalhead505
    Participant

    @metalhead505

    You are the best!

    Thanks!!

    I’m still sorta using both themes via a child-theme for legacy hacks.

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