/** * Change customer password * * @param Mage_Customer_Model_Customer $customer * @param string $newPassword * @return Mage_Customer_Model_Resource_Customer */ public function changePassword(Mage_Customer_Model_Customer $customer, $newPassword) { $customer->setPassword($newPassword); $this->saveAttribute($customer, 'password_hash'); return $this; }