Magento – How to Remove Password Matching in Account Registration Form

ce-1.9.1.0form-validationformspassword

I am creating a custom user registration page for which I copied registration.phtml to another location and I am working with it.

And for that page I don't want the user to be enforced to enter the password twice.

How do I do that?

Best Answer

Magento has perform server side validation for customer registration, so conformation password is must.

Copy this file to your theme with correct folder structure

/app/design/frontend/base/default/template/persistent/customer/form/register.phtml

Then make conformation password field as hidden

<input type="hidden" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" />

Then write a script to copy the password field to confirmation field.

jQuery("#password").change(function(){
   jQuery("#confirmation").val(jQuery("#password").val()) 
});