i'm facing an issue, some of you may help me find a clue ?
i have password, that come from an external source. allready md5 applied on it
what i'm trye to achieve is to compare that external password, with magento stored one
$magento_password = Mage::getModel("customer/customer") ->setWebsiteId(Mage::app() ->getWebsite() ->getId()) ->loadByEmail($email) ->getPasswordHash();
for as same email, external_password_md5 and magento password are relative the same inputed string (thay match in plain text), but i can't managed to get the two compared.
The fact is, that magento uses for password crypt this kind of code
$magento_password = md5($salt.$password).':'.$salt;
even if I have the $salt, my external_password is allready md5, so applying magento way on allready md5 password won't give anything.
Has anyone an idea how to achieve a comparaison that works ?
if ($external_password_md5 == $magento_password)