From 22966a8897227bacfbff65a3f1645791bcc3cb18 Mon Sep 17 00:00:00 2001 From: DOHA Date: Thu, 2 Apr 2015 21:26:41 +0200 Subject: [PATCH] fix password mismatch --- .../src/main/webapp/WEB-INF/view/registration.jsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-security-login-and-registration/src/main/webapp/WEB-INF/view/registration.jsp b/spring-security-login-and-registration/src/main/webapp/WEB-INF/view/registration.jsp index 973517f168..de5458cdf7 100644 --- a/spring-security-login-and-registration/src/main/webapp/WEB-INF/view/registration.jsp +++ b/spring-security-login-and-registration/src/main/webapp/WEB-INF/view/registration.jsp @@ -68,9 +68,11 @@ $(document).ready(function () { register(event); }); - $('#password').keyup(function(){ + $(":password").keyup(function(){ if($("#password").val() != $("#matchPassword").val()){ $("#globalError").show().html("Password mismatch"); + }else{ + $("#globalError").html("").hide(); } });