From f981e6d466f4c008b98a0cef1dacd7a2314acc31 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 22 Apr 2015 13:57:18 -0400 Subject: [PATCH] fixed confirm password validation --- public/src/installer/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/installer/install.js b/public/src/installer/install.js index 80d46bf337..c21d62a459 100644 --- a/public/src/installer/install.js +++ b/public/src/installer/install.js @@ -64,7 +64,7 @@ $('document').ready(function() { } function validateConfirmPassword(field) { - if ($('[name="password"]').val() !== $('[name="confirm"]').val()) { + if ($('[name="admin:password"]').val() !== $('[name="admin:password:confirm"]').val()) { parent.addClass('error'); help.html('Passwords do not match.'); } else { @@ -90,7 +90,7 @@ $('document').ready(function() { return validateUsername(field); case 'admin:password': return validatePassword(field); - case 'admin:confirm': + case 'admin:password:confirm': return validateConfirmPassword(field); case 'admin:email': return validateEmail(field);