aboutsummaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-01-27 03:05:57 +0700
committerGravatar Ugnich Anton2014-01-27 03:05:57 +0700
commit0565056a6ca2f4f72c9d2be264251667774894fc (patch)
tree513f6f46decc7e49b56a5570e1428435cd65725b /src/com
parent62e67a9b80fd59672ba24883f9e6a8c9b70781b1 (diff)
checkUserNameValid update
Diffstat (limited to 'src/com')
-rw-r--r--src/com/juick/server/UserQueries.java2
1 files changed, 1 insertions, 1 deletions
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) {