AnswerBun.com

Confirm Password Validation Not Working

Magento Asked by heady12 on December 25, 2020

I have an issue with the confirmation password validation on creating the account and reset password pages and showing the following error although the passwords match?

Please enter the same value again.

Any ideas on how to resolve the issues? I haven’t got any JS console errors.

2 Answers

I have the same issue, I believe it is because I added modal login/register form to all pages in my theme. The register modal has a field with id="password" I think the validator is checking this value rather than the desired input.

I have not fixed/tested this theory yet but it would make sense. Double check to ensure you do not have an additional id="password" on these pages

Answered by Shawn Northrop on December 25, 2020

Should check your template again.

1) Make sure we didn't need change id of password element. Because the confirmation password based on it:

vendor/magento/module-customer/view/frontend/templates/form/register.phtml

data-validate="{required:true, equalTo:'#password'}"

2) Should try to debug the Js: https://developers.google.com/web/tools/chrome-devtools/javascript/. My Magento version is 2.2.0 and the Js validation is jquery.validate.js. In your Browser (I used Chrome), open Sources Tab and debug.

enter image description here

Answered by Khoa TruongDinh on December 25, 2020

Add your own answers!

Related Questions

How to remove duplicate product images in magento 2?

0  Asked on December 7, 2021 by thien-hoang

   

One page search result using ajax

1  Asked on December 6, 2021 by abhishek-dhanraj-shahdeo

     

Magento2 : How to setup PWA in Localhost?

3  Asked on December 6, 2021 by sanjay-jethva

     

Problem with custom shipping module

1  Asked on December 4, 2021 by robert-pounder

       

How to redirect on specific product page in magento2

1  Asked on December 2, 2021 by rohan-hapani

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP