From 0565056a6ca2f4f72c9d2be264251667774894fc Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 27 Jan 2014 03:05:57 +0700 Subject: checkUserNameValid update --- src/com/juick/server/UserQueries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/juick/server') diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java index 716f8f0f..7a8520be 100644 --- a/src/com/juick/server/UserQueries.java +++ b/src/com/juick/server/UserQueries.java @@ -325,7 +325,7 @@ public class UserQueries { } public static boolean checkUserNameValid(String uname) { - return uname != null && uname.length() > 1 && uname.length() < 16 && uname.matches("[a-zA-Z0-9\\-\\.\\@]+"); + return uname != null && uname.length() >= 2 && uname.length() <= 16 && uname.matches("[a-zA-Z0-9\\-]+"); } public static int checkPassword(Connection sql, String username, String password) { -- cgit v1.2.3