Simple Membership Plugin › Forums › Simple Membership Plugin › Password reset link just goes back to the password reset form
Tagged: passwords reset link
- This topic has 9 replies, 3 voices, and was last updated 1 year, 1 month ago by
hertzman.
-
AuthorPosts
-
December 1, 2024 at 2:04 pm #29174
Desty
ParticipantI tried enabling the password reset link feature, and it sends me a link (generated with the
{password_reset_link}tag in the password reset email settings).
However, when I click that link, it just takes me back to the password reset form, with no option to enter a new password.Is there another step I was supposed to follow?
December 2, 2024 at 2:10 am #29175Desty
ParticipantUpdate: I figured it out after taking a look at the email again. It seems to be due to my site using “plain” permalink structure, so the URL of the password reset page looks like
https://site.url/?page_id=123.
The email body generates an incorrect link using{password_reset_link}, something like this:https://site.url/?page_id=123?action=swpm-reset-using-link&key=1234&login=some_username. Note the second?character.When I manually replace that second ? with an ampersand
&, it all works. I might try changing the site to use a different permalink structure.June 27, 2025 at 4:06 pm #30699hertzman
ParticipantSame problem, but the site is not using plain permalinks — it’s using “Post” permalinks.
1. If the user is logged in to SM when they try to reset their password, it works fine.
2. However, if no one is logged in, the sequence is this:
A. User enters email and clicks on “send link” button.
B. Link gets emailed, but screen does not refresh to show the green “Password reset link has been mailed to your email address” box.
C. User clicks on link in email. Screen refreshes to show the green “Password reset link has been mailed…” box, rather than the enter-new-password-twice box. And we’re stuck in this loop.Debug log:
[2025/06/27 09:29:55] – SUCCESS: Completed the profile_update hook handling – SWPM user profile (Member ID: 2425) updated with the latest WP user data.
[2025/06/27 09:29:55] – SUCCESS: Reset password using link option is enabled.
[2025/06/27 09:29:55] – SUCCESS: Member password reset email sent to: <removed for privacy>@gmail.comThe link generated in the email:
https://seniorsoutdoors.org/password-reset/?action=swpm-reset-using-link&key=WLIwgZWjWwxhjthamYCl&login=BatmanIdeas? Thanks!
June 27, 2025 at 4:48 pm #30700hertzman
ParticipantUpdate: Seems like it’s working the first time I try it while not logged in, but then fails on subsequent attempts.
June 27, 2025 at 7:38 pm #30701hertzman
ParticipantMore update: above update is wrong. Sometimes it works, sometimes it doesn’t. I’ve tried a number of
things, carefully tracking log and cookie values on each step. I’m having trouble finding a pattern. The only consistency I can find is that it works when a user is logged in, and most of time fails when no one is logged in. I’ve tried clearing cache, deleting cookies, different users.June 27, 2025 at 9:50 pm #30703hertzman
ParticipantAnd one more piece of information. There’s a very similar behavior when we switch the reset-password option over to the version that assigns a random password and emails the user to notify them of their password. When user is logged in, this works as expected. When user is logged out, most of the time it jumps to the screen that prompts for their email, sends the email properly, but then returns to the same email prompt screen without the usual expected green box confirming that an email has been sent.
June 28, 2025 at 1:09 am #30704The Assurer
ModeratorMore update: above update is wrong. Sometimes it works, sometimes it doesn’t.
Is your site using any page caching plugins, or server chaching modules?
June 29, 2025 at 4:23 pm #30715hertzman
ParticipantYes indeed. Interesting. The server does not cache pages when a member is logged in, but does cache pages when no one is logged in, so this is consistent with what we’re seeing. I’ve just disabled caching for the reset password page (as well as a couple of other pages that are used when no one is logged in); I’ll update you on what happens after I hear back from a few testers. Thanks for the quick response!
June 29, 2025 at 11:53 pm #30717The Assurer
ModeratorPlease read the section: Integration/Compatibility (With Other Plugins
https://simple-membership-plugin.com/simple-membership-documentation/Note that only certain caching plugin addons are supported by SWPM.
June 30, 2025 at 2:11 pm #30719hertzman
ParticipantYeah, I did read that page while troubleshooting. At least so far, it seems like disabling caching for the affected page has solved the problem. Appreciate your help!
-
AuthorPosts
- You must be logged in to reply to this topic.