• Resolved wprun

    (@wordpressrun)


    I have looked through these forums and there are lots of people saying reset link is not working. – this is not my issue.

    The issue is, on the reset password email, the link doesn’t show at all. (everything else in the email shows as you would expect).

    Why might this be happening?

    Thanks

    • This topic was modified 6 years, 1 month ago by wprun.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Can you check if your emails are being sent as plaintext or HTML?

    Thread Starter wprun

    (@wordpressrun)

    They are in HTML

    Plugin Author Jeff Farthing

    (@jfarthing84)

    That is likely your problem. Since the link is sent in angle brackets, your email client is likely parsing it as HTML.

    Thread Starter wprun

    (@wordpressrun)

    I see . I found the line 94 of compat.php
    $message .= ‘(‘ . network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ ) . “)\r\n”;

    And as you can see above I have changed angle brackets to round ones.
    And the the url is now showing,

    But you should be able to click on it as a link (now it is just a url, that you have to copy and paste). How would I fix that please?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Again, since you’re using HTML email, you would have to wrap it in an anchor tag:

    
    $reset_link = network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ );
    $message .= ‘<a href="' . $reset_url . '">' . $reset_url . "</a>\r\n”;
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reset Password Link Not Showing’ is closed to new replies.