(I see this happened to many people before, but I couldn’t find a solution searching here)
I’m adding user accounts to my app and I’m trying to reset the password of a user. The issue I have is that after receiving the link and changing the password, the user cannot login again (neither using the old password or the new).
Steps to reproduce:
Create a user
Request a password reset (use JS API or REST, doesn’t work anyway)
Go to your mail and click the link
Change the password (after that, the user gets updated in the DB)
Welcome to the community! I was not able to reproduce it in my app. Please provide us with the appId where you have the issue. Can we create a test account there in order to reproduce the issue?
So now I have to ask you, how do you reset a password? As I see, your app has the “User requests password reset” template enabled. So the new password is sent directly to the email. There is no link in this flow. In order to reset password via link, you need to enable the “User requests password reset by link” template in Messages → Email.
I tried both settings (sending random password or a link). This is why you found it changed. Anyway, I tried it again but using the REST API for login, and it works. I was using the JS API until now, with no issues, but maybe there’s something wrong in my implementation or it’s a potential bug in that API.