Forgot password email link doesn't work

This topic contains 11 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2763

    Delyth Chandler
    Free User
    Post count: 5

    Please can you help. When the user selects Forgot Password, the Forgot password page is shown. They enter their email address and then receive an email with the following text:

    Dear Delyth Chandler,

    You can login here: login

    Thank you,

    https://bsgi.org.uk.

    Clicking “login” just takes them back to the login screen, with no opportunity to reset password.

    #2764

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can find the template for the email notification at:

    UsersWP – Notifications – Forgot password email

    This is the original :

    
    
    
    <p>Dear [#user_name#],</p>[#login_details#]<p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>
    

    You can replace whatever is there this this text, and then change it to meet your needs.

    If there is still a problem after you test, let us know and we can take a look at your settings.

    #2765

    Delyth Chandler
    Free User
    Post count: 5

    Hi Alex,
    Thanks for your reply, but the link is still wrong. [#login_url#]
    I don’t want them to login I want them to be able to reset the password

    Thanks again for your help
    Delyth

    #2766

    Alex Rollin
    Moderator
    Post count: 27815

    This is what I get with the default value:

    
    
    
    Dear username,
    
    You have requested to reset your password for the following account:
    
    https://site.com/123/
    Username: username
    
    If this was by mistake, just ignore this email and nothing will happen.
    
    To reset your password, click the following link and follow the instructions.
    
    https://site.com/123/reset/?key=nhig24fXDuJkHwjDSXAm&login=username
    You can login here: login (https://site.com/123/reset/?key=nhig24fXDuJkHwjDSXAm&login=username)
    
    Thank you,
    
    https://site.com/123.
    

    Maybe we are talking about different things, but the way this works is to send that key so the user can reset the password (not send them the old password).

    #2772

    Delyth Chandler
    Free User
    Post count: 5

    Hi Alex,

    Thanks again for you help.

    I found that the Forgot password email settings were wrong on this page:
    http://bsgi.org.uk/wp/wp-admin/admin.php?page=uwp_notifications

    I’ve have now amended this to

    <p>Dear [#user_name#],</p>[#login_details#]<p>You can reset your password here: [#reset_link#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>

    Using the suggested shortcode of [#reset_link#], but this does not get replaced in the user’s email, it shows
    “You can reset your password here: [#reset_link#]”

    and doesn’t substitute the link for the shortcode.

    What could I be doing wrong please?

    Many thanks

    Delyth

    #2773

    Alex Rollin
    Moderator
    Post count: 27815

    Per the release notes, try using one or the other, either login_details OR reset_link:

    https://userswp.io/userswp-1-0-7-released/

    #2780

    Delyth Chandler
    Free User
    Post count: 5

    Ah great, that’s sorted it on my local dev environment, but I still have a problem on my staging and production environments, even though the settings appear to be exactly the same!

    This is probably caused by something other than your plugin, but if you have any other thoughts on where to look, they would be greatly appreciated!

    Many thanks again

    Delyth

    #2783

    Alex Rollin
    Moderator
    Post count: 27815

    Hi,

    You have ‘a problem’ as in another problem, or…the same problem?

    #2784

    Delyth Chandler
    Free User
    Post count: 5

    On the staging site, when I have this in the forgot password email
    <p>Dear [#user_name#],</p>[#reset_link#]<p>Thank you,<br /><br />[#site_name_url#].</p>

    I get an error on the forgot password form
    “Error: Something went wrong when sending email. Please contact site admin.”

    When I have this in the forgot password email
    <p>Dear [#user_name#],</p>[#login_details#]<p>Thank you,<br /><br />[#site_name_url#].</p>

    The email sends correctly, but doesn’t substitute any of the login-details:

    “Dear Delyth Chandler,

    Thank you,

    http://bsgi-staging.core-clients.co.uk.

    When I use the latter on the dev site, it sends the email and correctly puts the reset link etc in the email text.

    Thank you again

    #2785

    Alex Rollin
    Moderator
    Post count: 27815

    Well, that’s not right. If you like we can take a look, but we will need WP Admin and FTP to diagnose the issue. You can use a private reply and only our team will be able to view the info.

    Let us know

    #2796

    Delyth Chandler
    Free User
    Post count: 5

    Thank you.

    I’m not sure about granting you access as there will be confidentiality issues. I’ll let you know if I can work out how to do that with maybe some of the data removed.

    Thanks again

    Delyth

    #2799

    Alex Rollin
    Moderator
    Post count: 27815

    OK, let us know, of if you find other issues.

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket