fixed confirm password validation

v1.18.x
psychobunny 10 years ago
parent 220dec5711
commit f981e6d466

@ -64,7 +64,7 @@ $('document').ready(function() {
} }
function validateConfirmPassword(field) { function validateConfirmPassword(field) {
if ($('[name="password"]').val() !== $('[name="confirm"]').val()) { if ($('[name="admin:password"]').val() !== $('[name="admin:password:confirm"]').val()) {
parent.addClass('error'); parent.addClass('error');
help.html('Passwords do not match.'); help.html('Passwords do not match.');
} else { } else {
@ -90,7 +90,7 @@ $('document').ready(function() {
return validateUsername(field); return validateUsername(field);
case 'admin:password': case 'admin:password':
return validatePassword(field); return validatePassword(field);
case 'admin:confirm': case 'admin:password:confirm':
return validateConfirmPassword(field); return validateConfirmPassword(field);
case 'admin:email': case 'admin:email':
return validateEmail(field); return validateEmail(field);

Loading…
Cancel
Save