You need to sign in to do that
Don't have an account?

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
Try Sites forum.