Forgot Password
In order for a user to request a reset password in your application, you will need to create a new Datasource.
Reset Password Datasource
- Create a new Forgot Password Screen.
- Add a Text Field for the email.
- Press the Datasource button, and then the + Create datasource button.
- Select the Kodika Server tab.
- Select User Data Type.
- Select Forgot Password User.
- Bind the Email parameter with the respective Text Field.
- Connect at least the parameter of the On Success response.
- Press Save.
- Close Datasource popup.
- Add a Button and change its title to Request Password Reset.
- Create a Start a Datasource Request Event Action in the On Click Event of the Button and select the newly created Datasource.
Request Parameters
The email of the user that password reset email will be requested.
Responses
Note: If any of the validations failed, the On Success response is not called, and only the respective failure response is called.
On Success
Called when the reset password email has been sent.
Parameters:
- Success: A Boolean with
true
value.
On Error
Called when there is an unknown error that is not handled by the other responses.
Parameters:
- Error: A text with an error message.
When Offline
Called when the user has no Internet connection.
Parameters:
- Error: A text with an error message.
Datasource automation
We would suggest setting the Datasource Spinner to ON and Auto start when Screen First Loads to OFF for this request, as we want to show a spinner during the request and execute the request only when the Button is pressed.