function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkatSanthanamvenkatSanthanam 

Site.ChangePassword

Hello,

I have a potal user logged into Sites and have Site.ChangePassword in apex code to change the password of the logged in portal user.

 

When I use Site.ChangePassword(newpwd, verifnewpwd, oldpwd); method, it shows visual force error message.

When I user Site.ChangePassword(newpwd, verifynewpwd) method, there are no erros but pwd does not get changed.

 

This is puzzling. The method with 3 arguments work well in the default salesforce forgot password flow.

 

Any Thoughts?

 

Thanks

Venkat