diff options
Diffstat (limited to 'juick-server')
-rw-r--r-- | juick-server/src/main/java/com/juick/util/UserUtils.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/util/UserUtils.java b/juick-server/src/main/java/com/juick/util/UserUtils.java index 372dd502..ba1bd1ab 100644 --- a/juick-server/src/main/java/com/juick/util/UserUtils.java +++ b/juick-server/src/main/java/com/juick/util/UserUtils.java @@ -22,10 +22,6 @@ public class UserUtils { return sb.toString(); } - public static boolean checkUserNameValid(final String uname) { - return uname != null && uname.length() >= 2 && uname.length() <= 16 && uname.matches("[a-zA-Z0-9\\-]+"); - } - public static String getUsername(final Principal principal, final String defaultUsername) { return principal == null ? defaultUsername : principal.getName(); } |