Skip to content

Commit a63a9e6

Browse files
author
Eugen
committed
Merge pull request eugenp#184 from Doha2012/master
fix password mismatch
2 parents 51cbb0f + 22966a8 commit a63a9e6

File tree

1 file changed

+3
-1
lines changed
  • spring-security-login-and-registration/src/main/webapp/WEB-INF/view

1 file changed

+3
-1
lines changed

spring-security-login-and-registration/src/main/webapp/WEB-INF/view/registration.jsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ $(document).ready(function () {
6868
register(event);
6969
});
7070
71-
$('#password').keyup(function(){
71+
$(":password").keyup(function(){
7272
if($("#password").val() != $("#matchPassword").val()){
7373
$("#globalError").show().html("Password mismatch");
74+
}else{
75+
$("#globalError").html("").hide();
7476
}
7577
});
7678

0 commit comments

Comments
 (0)