Please make sure your passwords match magento

  • author-img Nidhi Arora
  • 6 years


Well this is a common problem that is encountered in Magento 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.


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


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();
$confirmation = $this->getPasswordConfirmation();

Reference Validation Links

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

Download Blog


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