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 4 replies - 1 through 4 (of 4 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.


    metalhead505
    Participant

    @metalhead505

    Venutius – Do you know how I can do this with Nouveau?


    metalhead505
    Participant

    @metalhead505

    I figured this out based on advice you gave me on a different topic:

    document.getElementById("signup_password").onchange = function() {myFunction()};
    function myFunction() {
     var z = document.getElementById("signup_password");
    document.getElementById("signup_password_confirm") .value = z.value;
    }

    Thanks anyway & you are the Buddypress king! 🙂

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