Title: Wrong Password Reset Link
Last modified: December 7, 2021

---

# Wrong Password Reset Link

 *  Resolved [dkance](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/)
 * Hi,
 * When a user requests a password reset, the link received redirects to a WordPress
   login page.
 * The sender is [wordpress@mysite.com](https://wordpress.org/support/topic/wrong-password-reset-link/wordpress@mysite.com?output_format=md)
   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](https://wordpress.org/support/users/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](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15142277)
 * Hi [@dkance](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15143442)
 * Hi [@champsupertramp](https://wordpress.org/support/users/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/1Qatl1Ma_6uFY56B3tKX7NXVm2Gykl1ox/view?usp=sharing)
 * [https://drive.google.com/file/d/13QMRIQZ-V6alBfKQLTOhWC8ZJzmG6vCL/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](https://mysite/wp-login.php?action=&#8230);
 * I cannot figure out what is going on.
 * Thanks again.
 * Regards.
    -  This reply was modified 4 years, 6 months ago by [dkance](https://wordpress.org/support/users/dkance/).
    -  This reply was modified 4 years, 6 months ago by [dkance](https://wordpress.org/support/users/dkance/).
 *  Thread Starter [dkance](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15144753)
 * Hi [@champsupertramp](https://wordpress.org/support/users/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, 6 months ago by [dkance](https://wordpress.org/support/users/dkance/).
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15146711)
 * Hi [@dkance](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15146841)
 * Hi [@champsupertramp](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15148503)
 * Hi [@champsupertramp](https://wordpress.org/support/users/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](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15150562)
 * Thanks for letting us know.
 * Regards,
 *  Thread Starter [dkance](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15492990)
 * Hi [@champsupertramp](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dkance/)
 * (@dkance)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15496523)
 * [@aswingiri](https://wordpress.org/support/users/aswingiri/), [@missveronicatv](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [password reset](https://wordpress.org/support/topic-tag/password-reset/)

 * 9 replies
 * 2 participants
 * Last reply from: [dkance](https://wordpress.org/support/users/dkance/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/wrong-password-reset-link/#post-15496523)
 * Status: resolved