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
rtyanasrtyanas 

ChangePassword not passing correct old password

I am using a custom Site.

 

When a user forgets their password there is an option where I can reset the password then send it to their email address.  using this call which works fine:

 

Site.forgotPassword(username);

 


When the user tries to log in for the first time using their new password they are directed to the Site defined

Change Password VF  user interface/Page.  The force.com change password process is to populate the first apex:inputSecret field with the old password.  This old password is always wrong.

 

Site.changePassword(newPassword, verifyNewPassword, oldpassword);  

 

This call works as designed, it is telling me that the old password is wrong.  When I enter the correct password it works fine.  It is only when the ChangePassword VF page is displayed with the wrong old password is where I am having problems.

 

Is there a work around for getting the correct old password?  Can I make force.com give me the correct old password?

 

Thanks.

 

Tom

 

cwall_sfdccwall_sfdc

Try Sites forum.