2

I am using Magento version 1.9.0.1. On new customer registration, I am getting "Please make sure your passwords match" error. I have tried different solutions, but nothing works, still same error appears.

6
  • "I have tried different solutions, but nothing works, still same error appears" which one ? Commented Oct 13, 2015 at 7:49
  • There are many questions regarding this issue.. I have read those issues.. I have added <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" /> after <ul class="form-list"> in login.phtml.. and register.phtml . Added <?php echo $this->getBlockHtml('formkey'); ?> before </form> in register.phtml.
    – ved
    Commented Oct 13, 2015 at 7:51
  • Did you recently upgrade your system? Commented Oct 13, 2015 at 7:51
  • No.. From starting only I am using version 1.9.0.1
    – ved
    Commented Oct 13, 2015 at 7:53
  • FYI validation trigger on form submit not on lost focus of field can you confirm ? Commented Oct 13, 2015 at 8:02

2 Answers 2

4

Check register.phtml name for Confirmation Password should be confirmation.
Because setConfirmation method is used in customer AccountController in various places to set the confirmation value.
If there is some mismatch try changing setConfirmation to setPasswordConfirmation() in AccountController.

5
  • Yes name for Confirmation Password is 'confirmation'. In AccountController.php setConfirmation is present at 4 to 5 places.
    – ved
    Commented Oct 13, 2015 at 8:11
  • Changes setConfirmation to setPasswordConfirmation but still not workig.
    – ved
    Commented Oct 13, 2015 at 9:03
  • @ved Try changing in file app/code/core/Mage/Checkout/Model/Type/Onepage.php as well. Commented Oct 13, 2015 at 9:08
  • I have changed register.phtml with othe Magentor installation's register.phtml and Now it is working. Thank you for your help.
    – ved
    Commented Oct 13, 2015 at 10:02
  • This answer is a bit vague, it would be better to highlight when the confirmation field name changed in the recent patches rather than suggesting to "try" changing it.
    – scrowler
    Commented Jun 9, 2016 at 2:24
2

Its worked for me in Magento-1.9.3.4 by below changes in app/code/core/Mage/Customer/controllers/Accountcontroller.php

$customer->setPasswordConfirmation($request->getPost('confirmation'));

to

$customer->setConfirmation($request->getPost('confirmation'));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.