diff --git a/src/main/webapp/register.jsp b/src/main/webapp/register.jsp index 0a3ee27..e7b21b6 100644 --- a/src/main/webapp/register.jsp +++ b/src/main/webapp/register.jsp @@ -109,12 +109,12 @@ Please enter your password. These passwords don't match.

-

- + +

The password must contain a lowercase letter, a capital (uppercase) letter, a number and must be at least 6 characters long. White space character is not allowed. @@ -147,10 +147,11 @@ // When the user starts to type something inside the password field myInput.onkeyup = function() { - if (/\s/g.test(myInput.value)) { - $("msg_whitespace").fadeIn(); + var space = /[\s]+/g; + if (myInput.value.match(space)) { + $(".msg_whitespace").fadeIn(); } else { - $("msg_whitespace").fadeOut(); + $(".msg_whitespace").fadeOut(); } // Validate lowercase letters diff --git a/src/main/webapp/resetPassword.jsp b/src/main/webapp/resetPassword.jsp index 99b9574..82793ba 100644 --- a/src/main/webapp/resetPassword.jsp +++ b/src/main/webapp/resetPassword.jsp @@ -67,7 +67,7 @@ -

+

<%--${msg_invalid_password}--%> <%----%>