$email='test@gmail.com';
$customer =Mage::getModel('customer/customer')
->setWebsiteId(Mage::app()->getStore()
->getWebsiteId())
->loadByEmail($email);
$hash= $customer->getPasswordHash();
Mage::helper('core')->validateHash($currentpassword, $hash);
$customer =Mage::getModel('customer/customer')
->setWebsiteId(Mage::app()->getStore()
->getWebsiteId())
->loadByEmail($email);
$hash= $customer->getPasswordHash();
Mage::helper('core')->validateHash($currentpassword, $hash);
No comments:
Post a Comment