Please make sure your passwords match magento 1.9.1.0

  • author-img Nidhi Arora
  • 6 years
  • 529 views
Still-Getting-Password-Mismatch-Errors_

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();
}

Reference Validation Links

https://github.com/speedupmate/Magento-CE-Mirror/blame/master/app/code/core/Mage/Customer/Model/Customer.php#L841

https://github.com/speedupmate/Magento-CE-Mirror/commits/magento-ce-1.9.1.0/app/code/core/Mage/Customer/Model/Customer.php

Feel free to reach us if you still face this issue.

Download Blog

ENQUIRY

Ready to Get started

Communication is the key for us to understand each other. Allow us to understand
your requirements or queries. Present us with an opportunity to serve you.

Fill out the form and out team will get back to you
within 24 hours

    Head Office

    1250 Pittsford Victor Road Ste 310
    Pittsford, NY 14534

    Development Center

    Plot no. 10, Rajiv Gandhi
    Chandigarh Technology Park