Skip to content
Snippets Groups Projects
Commit 1eb8ca0d authored by piotr.gawron's avatar piotr.gawron
Browse files

improved error message

parent 9b822714
No related branches found
No related tags found
1 merge request!2Bug fixes
...@@ -30,7 +30,7 @@ public class LoginValidator implements Validator { ...@@ -30,7 +30,7 @@ public class LoginValidator implements Validator {
} }
if (!LOGIN_PATTERN.matcher((String) value).matches()) { if (!LOGIN_PATTERN.matcher((String) value).matches()) {
String summary = "Incorrect login."; 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)); throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, summary, detail));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment