• Resolved sstaffie

    (@sstaffie)


    I have a couple of issues with the password reset functionality and was wondering if someone could assist?

    1. The password reset email is sending out a password reset link without a colon (:) between the https and the // which is generating an error. The email reset link is being automatically generated using the reset password link shortcode so I am unsure why the colon is missing. If I manually copy the link address and add the colon in it works fine. How can I change this?

    2. When accessing the correct password reset link it takes you through to the new password and confirm password form. The confirm password box has the words “confirm password” inside of it despite the fact I do not want it to be displayed. I have the same issue with the registration form and had to use a piece of code to remove it which I found online but cant find a piece of code to remove it from the password reset form. Can anyone assist?

    The code I used to remove it from the registration form was:

    add_filter( "um_confirm_user_password_form_edit_field", "my_um_remove_placeholder", 10, 2 );
    
    function my_um_remove_placeholder( $output, $set_mode ) {
    
        if( $set_mode == 'register' ) {
            $output = str_replace( 'placeholder="Confirm Password"', 'placeholder=""', $output );
        }
        return $output;
    }

    Any assistance is appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @sstaffie

    1. Do you have other customization with UM hooks? Try disabling it and see if this is a conflict issue with the custom code.

    2. Please try the following Code Snippet to change the Confirm Password label.

    add_filter('um_predefined_fields_hook', 'um_053122_change_confirm_password_label', 10, 1 );
    function um_053122_change_confirm_password_label( $fields ){
        $fields['user_password']['label_confirm_pass'] = "Test new label";
       return $fields;
    }
    Thread Starter sstaffie

    (@sstaffie)

    Thanks for the reply.

    I have no customisation with UM hooks at all. The install info in the UM Settings page shows the correct site URL with the https:// at the front, however, the automatically generated password reset link is missing the colon for some reason (https//) and as a result the link doesn’t work.

    Just prior to you replying I modified the previous code I had used slightly, this seems to have worked. Here is the updated code for anyone that wants to give it a try:

    add_filter( "um_confirm_user_password_form_edit_field", "my_um_remove_placeholder", 10, 2 );
    
    function my_um_remove_placeholder( $output, $set_mode ) {
    
        if( $set_mode == 'register' || $set_mode == 'password') {
            $output = str_replace( 'placeholder="Confirm Password"', 'placeholder=""', $output );
        }
        return $output;
    }
    Thread Starter sstaffie

    (@sstaffie)

    I have rebuilt the password reset email template and this seems to have fixed the issue, must have been a bug somewhere.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @sstaffie

    Thanks for letting us know how you’ve resolved the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Password Reset Issues’ is closed to new replies.