do you the difference between these two methods?
- Site.forgotPassword
- System.resetPassword
I didn't find any difference in the official documentation.
Of course the main classes Site and System have different application but in my case Site.forgotPassword doesn't work properly.I have this page in a Community Site where I use forgotPassword but then the link generated seems to be expired when I click on it from email instead the other one works fine.Can be a potential security issue to expose the System.resetPassword? Does it respect the security policies? It seems the ResetPassword provided in the Setup Page.Thanks!1 answer
Hi Ciro,You can find below documentation for details on Site.forgotPassword and System.resetPassword.https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_system.htmhttps://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_sites.htm⌗apex_System_Site_forgotPasswordPlease mark as Best Answer if above information was helpful.Thanks,