Reset Password
After the successful registration of a user, you can prompt the end-user to reset their password using the following code snippet.
-
EmailID and Platform type are the mandatory attributes.
-
When inviting a new user, you can configure the sender’s email address, subject and the email message. You must add the email address in the Catalyst Mail Component and get it verified before using it in the SDK code.
Create a JSON Configuration
You need to configure the JSON object to contain the registering the details of a particular user in the manner shown below:
//Create Config Object for the user
const signupConfig={
platform_type:'web',
zaid:10014774358,
template_details:{
senders_mail:'dogogetu@tutuapp.bid',
subject:'Welcome to %APP_NAME% ',
message:'<p>Hello ,</p> <p>Follow this link to join in %APP_NAME% .</p> <p><a href=\'%LINK%\'>%LINK%</a></p> <p>If you didn’t ask to join the application, you can ignore this email.</p> <p>Thanks,</p> <p>Your %APP_NAME% team</p>'
}
};
var userConfig={
first_name:'A',
last_name:'B',
email_id:'amelia.burrows@zylker.com'
};
SDK Method to Reset the Password
You need to pass the JSON object as argument to the registerUser() SDK method which returns a promise. The promise returned will be resolved to an object which is a JSON.
While calling the registerUser() SDK method, a reset password link will be generated and sent to the user’s Email address.
The userManagement reference used in the code snippet below is the component instance.
const users=await userManagement.resetPassword('amelia.b@zylker.com',{
platform_type:'web',
redirect_url:'https://www.google.com',
template_details:{
subject:'Reset Password',
message:'Click on the link to reset your password: Reset Password',
senders_mail:'support@zylker.com'
}
});
console.log(users);
Last Updated 2026-07-02 14:51:41 +0530 IST
Yes
No
Send your feedback to us