Skip to content

Commit c074561

Browse files
committed
modify error messages
1 parent 1e41670 commit c074561

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ $(document).ready(function () {
7878
common: {minChar:8},
7979
ui: {
8080
showVerdictsInsideProgressBar:true,
81-
showErrors:true
81+
showErrors:true,
82+
errorMessages:{
83+
wordLength: "Your password is too short",
84+
wordNotEmail: "Do not use your email as your password",
85+
wordSequences: "Your password contains sequences",
86+
wordLowercase: "Use lower case characters",
87+
wordUppercase: "Use upper case characters",
88+
wordOneNumber: "Use numbers",
89+
wordOneSpecialChar: "Use special characters"
90+
}
8291
}
8392
};
8493
$('#password').pwstrength(options);

0 commit comments

Comments
 (0)