Reset Password

After the successful registration of a user, you can reset the password using the following code snippet. When called, the resetPassword() method generates a reset password link and sends it to the user's Email address.

Ensure the following packages are imported:

Copiedimport com.zc.component.users.PlatformType
import com.zc.component.users.ZCSignUpData
import com.zc.component.users.ZCUser
Copied//Get an instance of the ZCSingUpData object 
ZCSignUpData signUpdetails = ZCSignUpData.getInstance();
//Set the necessary data for resetting password
signUpdetails.setPlatformType(PlatformType.WEB);
signUpdetails.userDetail.setEmailId("santhosh.suresh+sdkuserAdd2@zohocorp.com");
signUpdetails.userDetail.setLastName("Suresh");
//Call reset password to send a mail to reset password
ZCUser.getInstance().resetPassword(signUpdetails);