Problem

Well this is a common problem that is encountered in Magento 1.9.1.0. When a User registers (doesn’t matter if its during checkout or from the Create an Account link) the user keeps getting the password mismatch error even though the password is re-entered correctly.

Reason

The validation method was changed in v1.9.1.

Earlier:

 $confirmation = $this->getConfirmation();

Now:

 $confirmation = $this->getPasswordConfirmation();

So the children of class Mage_Customer_Model_Customer should use getPasswordConfirmation() instead of getConfirmation()

Solution

Go to file app/code/core/Mage/Customer/Model/Customer.php

Find the below code :

 $confirmation = $this->getPasswordConfirmation();

Change this to :

 $confirmation = $this->getConfirmation();

If this still doesn’t work then add it to a condition mentioned below


if(Mage::app()->getFrontController()->getRequest()->getModuleName() == ‘onepagecheckout’){
$confirmation = $this->getConfirmation();
}else{
$confirmation = $this->getPasswordConfirmation();
}

Categories: Magento

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *