Skip to main content
Ciro Somma (a) perguntou em #Apex
Hello guys,

do you the difference between these two methods?

  1. Site.forgotPassword
  2. 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 resposta