From c0745615a9e0ca118b4497b0d49ac6854754c1ae Mon Sep 17 00:00:00 2001 From: DOHA Date: Thu, 2 Apr 2015 19:31:27 +0200 Subject: [PATCH] modify error messages --- .../src/main/webapp/WEB-INF/view/registration.jsp | 11 ++++++++++- 1 file changed, 10 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 66abbed2a8..973517f168 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 @@ -78,7 +78,16 @@ $(document).ready(function () { common: {minChar:8}, ui: { showVerdictsInsideProgressBar:true, - showErrors:true + showErrors:true, + errorMessages:{ + wordLength: "Your password is too short", + wordNotEmail: "Do not use your email as your password", + wordSequences: "Your password contains sequences", + wordLowercase: "Use lower case characters", + wordUppercase: "Use upper case characters", + wordOneNumber: "Use numbers", + wordOneSpecialChar: "Use special characters" + } } }; $('#password').pwstrength(options);