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.
-
"I have tried different solutions, but nothing works, still same error appears" which one ?– Minesh PatelCommented 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.– vedCommented Oct 13, 2015 at 7:51
-
Did you recently upgrade your system?– David MannersCommented Oct 13, 2015 at 7:51
-
No.. From starting only I am using version 1.9.0.1– vedCommented Oct 13, 2015 at 7:53
-
FYI validation trigger on form submit not on lost focus of field can you confirm ?– Minesh PatelCommented Oct 13, 2015 at 8:02
|
Show 1 more comment
2 Answers
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
.
-
Yes name for Confirmation Password is 'confirmation'. In AccountController.php setConfirmation is present at 4 to 5 places.– vedCommented Oct 13, 2015 at 8:11
-
Changes setConfirmation to setPasswordConfirmation but still not workig.– vedCommented 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.– vedCommented 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.– scrowlerCommented Jun 9, 2016 at 2:24
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'));