• Resolved dkance

    (@dkance)


    Hi,

    When a user requests a password reset, the link received redirects to a WordPress login page.

    The sender is [email protected] and the text is not the UM email template for reseting password that is active.

    I dissabled all plugins for testing. It did not fixed the problem.

    I performed a complete purge. No solution.

    I installed a code snippet suggested by @champsupertramp but it did not fix it either.

    I appreciate any suggestions.

    Regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @dkance

    Did you assign the Password Reset page in WP Admin > Ultimate Member > Settings > General > Pages > Password Reset page ?

    Could you please provide a screenshot of the UM Email Settings?

    Regards,

    Thread Starter dkance

    (@dkance)

    Hi @champsupertramp,

    I am sharing screenshots of the UM Email Settings below

    https://drive.google.com/file/d/1Qatl1Ma_6uFY56B3tKX7NXVm2Gykl1ox/view?usp=sharing

    https://drive.google.com/file/d/13QMRIQZ-V6alBfKQLTOhWC8ZJzmG6vCL/view?usp=sharing

    Although the email template seems to be ok, the email that is being sent has a different text and link that takes you to a WP login page (the email sender is WP). See sender and link below.

    Sender: WordPress <wordpress@mysite>
    https://mysite/wp-login.php?action=&#8230;

    I cannot figure out what is going on.

    Thanks again.

    Regards.

    • This reply was modified 4 years, 5 months ago by dkance.
    • This reply was modified 4 years, 5 months ago by dkance.
    Thread Starter dkance

    (@dkance)

    Hi @champsupertramp,

    I came across this YT tutorial fixing the problem.

    The problem seems to be in the code for the user.php file.

    I am sharing the exact code in my website’s file.

    if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) {
    		return new WP_Error(
    			'incorrect_password',
    			sprintf(
    				/* translators: %s: User name. */
    				__( '<strong>Error</strong>: The password you entered for the username %s is incorrect.' ),
    				'<strong>' . $username . '</strong>'
    			) .
    			' <a href="' . wp_lostpassword_url() . '">' .
    			__( 'Lost your password?' ) .
    			'</a>'

    She replaces the “wp_lostpassword_url()” piece by the “password-reset” page.

    What do you think about the diagnostic and recommendation?

    There were several comments agains modifying the code.

    Thanks.

    Regards.`

    • This reply was modified 4 years, 5 months ago by dkance.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @dkance

    You can change the lost password URL with the following code snippet:

    add_filter( 'lostpassword_url',  'um_072621_lostpassword_url', 10, 1 );
    function um_072621_lostpassword_url( $lost_password_url ) {
        if( ! function_exists('um_get_core_page' ) ) return $lost_password_url;
        
        return um_get_core_page("password-reset");
    }

    The above code will change the Lost Password URL with UM Password Reset Page URL.

    Regards,

    Thread Starter dkance

    (@dkance)

    Hi @champsupertramp,

    Thank you for the code snippet.

    It did not fix the problem.

    The email sent still has the old WP login link (https://mysite.com/wp-login.php?&#8230;).

    As I mentioned earlier, the email text and format are not the ones checked as active in UM/Settings/Email/Password Reset Email,

    Any suggestions? I am really lost here.

    Thanks.

    Regards.

    Thread Starter dkance

    (@dkance)

    Hi @champsupertramp,

    Problem is finally fixed.

    The solution was a function of your code (thanks!) and updating SPF and DMARC records with the Host.

    Thank you so much for the support.

    Regards.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

    Thread Starter dkance

    (@dkance)

    Hi @champsupertramp

    I am having trouble again with the password reset process (page/link).

    Currently when a user enters her email address for reseting the password (login page), she receives an email with a link to the ‘Password Reset’ Page.

    The problem is that the ‘Password Reset’ Page only asks for the email address again. So it sends that first email again. It is a loop.

    The General Page setting for Reseting the password is ‘Password Reset’

    Please advise on how to solve this issue.

    Thanks.

    Regards.

    Thread Starter dkance

    (@dkance)

    @aswingiri, @missveronicatv

    If you happen to know how to solve this (send the appropriate link) I would appreciate a piece of advice.

    Thanks.

    Regards.

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

The topic ‘Wrong Password Reset Link’ is closed to new replies.