Commit 17fa61a3 by Tuomas Riihimäki

correct username length validation from 3 to 2 chars

1 parent f9733a22
......@@ -46,7 +46,7 @@ public class UserValidator implements Serializable {
public void login(FacesContext context, UIComponent ui, Object object) {
String login = object.toString().trim();
if (login.length() < 3) {
if (login.length() < 2) {
message(context, ui, "userview.loginstringFaulty");
} else if (userbean.userExists(login)) {
message(context, ui, "userview.userExists");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!