Forgot/Reset/Change Password Settings
You can change or reset password of your web application without any new code just by using Contineo's default auth service and pre-defined APIs.
You can perform password-related operations such as resetting or changing a password of your web application without any new code, just by using Contineo's default auth service and pre-defined APIs.
To use these services:
Route Core Data Source Authentication Service from Xlib.core in your application or create your own.
Navigate to Auth > UI Properties > Forgot Password API Name and set it to forgotpasswordaction.
Navigate to Auth > UI Properties > Reset Password API Name and set it to resetpasswordaction.
Navigate to Auth > UI Properties > Change Password API Name and set it to changepasswordaction.
These are pre-defined APIs. You can also create your own actions according to your authentication flow.
If you want to change the content of the email or the sender, then drag the respective action into Library Overrides and make the necessary changes.
For example, to change the sender for forgotpasswordaction:
Drag the forgotpasswordaction to your application's Library Overrides.
Navigate to Action > Properties to change the script. The pre-defined API
sendemailis called.Change the sender email in the line:
sendemailApi.getMessage().sender = 'XXX@XXX.com';Save the action and the application.
In the same way, you can make changes in the Reset and Change Password actions.