Blog

How to change a user’s password via API if user cannot login (password reset)

by on April 26, 2015

There are two approaches to assisting a user that has forgotten their password. One, using an API to send a temporary password to a user (restore password), and the other is to reset the password. With the free plan, the API sends a temporary password generated by the backend system. However, with a paid plan, the same API works differently.

Rather than sending a computer-generated password, the user receives in an email a link to a customizable page where they can choose their own password. The webpage that Backendless uses by default is loaded from the file storage allocated to your Backendless backend. You can see it at the /web/templates/change_password/ directory:


When the user clicks the link in the password change email, they are presented with the following form (this is the form from the file shown above):

The text of the email can also be modified. See the instructions in our post on how to change the text of the email for password recovery.