You need to sign in to do that
Don't have an account?
Renish Ghetia
How to handle password change in PHP API ?
Hello,
i am using below code for login into salesforce from php and perform insert,update, delete using that connection object.
$mySforceConnection = new SforcePartnerClient(); $mySforceConnection->createConnection(SALESDIRECTORY . "partner.wsdl.xml"); $mySforceConnection->login(USERNAME, PASSWORD . SECURITY_TOKEN);
now if the USERNAME changes password in salesforce than above code will not login user using old PASSWORD.
how to overcome this issue ?
is there any other method for login and getting connection object?
A good approach is you use Oauth (https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com).
When the User change the password, you will not need to change the application code.
Please, if the answer was useful, mark it as a solution.
thank you
Ramon,
hello Ramon,
can not use OAuth as only one API user is there and can not display salesforce login on my website.
All data is dynamic in web which is coming from SF using single login detail.