Commit 1eb8ca0d authored by piotr.gawron's avatar piotr.gawron
Browse files

improved error message

parent 9b822714
......@@ -30,7 +30,7 @@ public class LoginValidator implements Validator {
}
if (!LOGIN_PATTERN.matcher((String) value).matches()) {
String summary = "Incorrect login.";
String detail = "Only alphanumeric characters and \"-_.\" special characters are allowed";
String detail = "Only alphanumeric characters and \"-\", \"_\", \".\" special characters are allowed";
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, summary, detail));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment