@@ -70,7 +70,7 @@ $(document).ready(function () {
7070
7171 $ (" :password" ).keyup (function (){
7272 if ($ (" #password" ).val () != $ (" #matchPassword" ).val ()){
73- $ (" #globalError" ).show ().html (" Password mismatch " );
73+ $ (" #globalError" ).show ().html (' <spring:message code="PasswordMatches.user"></spring:message> ' );
7474 }else {
7575 $ (" #globalError" ).html (" " ).hide ();
7676 }
@@ -82,13 +82,13 @@ $(document).ready(function () {
8282 showVerdictsInsideProgressBar: true ,
8383 showErrors: true ,
8484 errorMessages: {
85- wordLength: " Your password is too short " ,
86- wordNotEmail: " Do not use your email as your password " ,
87- wordSequences: " Your password contains sequences " ,
88- wordLowercase: " Use lower case characters " ,
89- wordUppercase: " Use upper case characters " ,
90- wordOneNumber: " Use numbers " ,
91- wordOneSpecialChar: " Use special characters "
85+ wordLength: ' <spring:message code="error.wordLength"/> ' ,
86+ wordNotEmail: ' <spring:message code="error.wordNotEmail"/> ' ,
87+ wordSequences: ' <spring:message code="error.wordSequences"/> ' ,
88+ wordLowercase: ' <spring:message code="error.wordLowercase"/> ' ,
89+ wordUppercase: ' <spring:message code="error.wordUppercase"/> ' ,
90+ wordOneNumber: ' <spring:message code="error.wordOneNumber"/> ' ,
91+ wordOneSpecialChar: ' <spring:message code="error.wordOneSpecialChar"/> '
9292 }
9393 }
9494 };
@@ -100,7 +100,7 @@ function register(event){
100100 $ (" .alert" ).html (" " ).hide ();
101101 $ (" .error-list" ).html (" " );
102102 if ($ (" #password" ).val () != $ (" #matchPassword" ).val ()){
103- $ (" #globalError" ).show ().html (" Password mismatch " );
103+ $ (" #globalError" ).show ().html (' <spring:message code="PasswordMatches.user"></spring:message> ' );
104104 return ;
105105 }
106106 var formData= $ (' form' ).serialize ();
0 commit comments