I am using Magento SOAP API v2 for web services. I want to update customer password API.
For this I have created a function as follows :
$complexFilter = array(
'complex_filter' => array(
array(
'key' => 'email',
'value' => array('key' => 'eq', 'value' => $customer_email)
)
)
);
$customerData = $soapClient->customerCustomerList($sessionId, $complexFilter);
$match = customerPasswordMatching($customer_old_pwd,$customerData[0]->password_hash); //it return true if password match
if($match == TRUE)
{
$customerInfo = array(
'firstname' => $first_name,
'password' => $customer_new_pwd,
'website_id' => $customerData[0]->website_id,
'store_id' => $customerData[0]->store_id,
'group_id' => $customerData[0]->group_id);
$result = $soapClient->customerCustomerUpdate($sessionId, $customer_id ,$customerInfo );
return $result;
}
else
{
return array('Success' => 0, 'Message' => 'Wrong Password');
}
This code update customer 'firstname' but not update customer password.
Any one can provide me details how can I update customer password in Magento soap API v2?