Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter leciak

    (@leciak)

    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

    (@ultimatemembersupport)

    Hi @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 if you are not sure how to do it.

    Please also exclude Ultimate member pages from the cache.

    Regards.

    Thread Starter leciak

    (@leciak)

    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/

    Have you enabled HTML emails in emails options?

    Thread Starter leciak

    (@leciak)

    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

    (@leciak)

    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.