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:
copy
import com.zc.component.users.PlatformType;
import com.zc.component.users.ZCSignUpData;
import com.zc.component.users.ZCUser;
copy
//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("amelia.burrows@zylker.com");
signUpdetails.userDetail.setLastName("Amelia");
//Call reset password to send a mail to reset password
ZCUser.getInstance().resetPassword(signUpdetails);
Yes
No
Send your feedback to us
Skip
Submit