Title: Broken password reset link
Last modified: March 3, 2019

---

# Broken password reset link

 *  [leciak](https://wordpress.org/support/users/leciak/)
 * (@leciak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/)
 * Dear Support,
 * I have an issue with password reset functionality. The link that is sent to email
   when using password reset functionality is broken. It says: “[https://boskastrefakobiet.pl/haslo/?act=reset_password&hash%5Berrors%5D%5Bno_password_reset%5D%5B0%5D=Reset%20has%C5%82a%20nie%20jest%20mo%C5%BCliwy%20dla%20tego%20u%C5%BCytkownika&&user_id=1121&#8221](https://boskastrefakobiet.pl/haslo/?act=reset_password&hash%5Berrors%5D%5Bno_password_reset%5D%5B0%5D=Reset%20has%C5%82a%20nie%20jest%20mo%C5%BCliwy%20dla%20tego%20u%C5%BCytkownika&&user_id=1121&#8221);
 * The error message is that the reset link is incorrect.
 * What am I missing here?

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

 *  Thread Starter [leciak](https://wordpress.org/support/users/leciak/)
 * (@leciak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11268946)
 * Quick update: I have noticed that the link is generated properly only, if the
   user has Administrator role. When I revert the role back to Subscriber, the link
   is broken again.
 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11272786)
 * Hi [@leciak](https://wordpress.org/support/users/leciak/),
 * Do you have the latest 2.0.39 version of the Ultimate member plugin installed?
   
   This issue can be due to some conflicts with your theme or other plugins or due
   to cache. Please do a quick conflict test and see if this issue goes away. Here
   is the [doc on how to do a conflict test](https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test)
   if you are not sure how to do it.
 * Please also exclude Ultimate member pages from the cache.
 * Regards.
 *  Thread Starter [leciak](https://wordpress.org/support/users/leciak/)
 * (@leciak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11272808)
 * I don’t have any caching plugins installed, so that’s not it. The plugin is up
   to date. The weird thing is that it only affects roles different from Administrator.
 * What I found on the internet a script that was originally used to block password
   reset for specific roles, so I modified it to enable it. It actually solved the
   issue for me, but the root cause is still unknown…
 * The script is as follows:
 * function se_deny_password_reset( $allow, $user_id ) {
 *  // WP_User object
    $user = get_user_by( ‘id’, $user_id );
 *  if ( in_array( ‘subscriber’, $user->roles ) ) {
    $allow = true; }
 *  return $allow;
    } add_filter( ‘allow_password_reset’, ‘se_deny_password_reset’,
   10, 2 );
 * @Credits: [http://www.sourcexpress.com/how-to-disable-reset-password-for-wordpress-users/](http://www.sourcexpress.com/how-to-disable-reset-password-for-wordpress-users/)
 *  [because i](https://wordpress.org/support/users/matrixpoland/)
 * (@matrixpoland)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11274599)
 * Have you enabled HTML emails in emails options?
 *  Thread Starter [leciak](https://wordpress.org/support/users/leciak/)
 * (@leciak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11274602)
 * Yes I did. As said: I get the email, and shortcodes is replaced with hyperlink,
   but the generated URL is not correct, as it contains the “no_password_reset” 
   statement in the reset link pattern. What is bizzare is that all works properly
   for admins, and doesn’t work when I change the user role to subscriber.
 *  Thread Starter [leciak](https://wordpress.org/support/users/leciak/)
 * (@leciak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11283685)
 * So it turn out that my workaround doesn’t fully work. Even though it made the
   password reset URL proper, the password change action does not take any effect(
   the password is not changed by the function). Any ideas?

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

The topic ‘Broken 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [leciak](https://wordpress.org/support/users/leciak/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/broken-password-reset-link/#post-11283685)
 * Status: not resolved