i have requirement where we need to add custom validation when a partner user forgets password and clicks on forget password link, and partner will be asked to enter the username so that they will receive a password reset link.So the requirement is to run few validations before the reset link is sent to the Partner. Can we do this using custom apex code? if so please mention the steps how to achieve it. Thanks


You can use custom forget password controller in Apex to control your behavior.

Here is the source URL for the same. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_sites.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.