aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r--juick-server/src/main/java/com/juick/util/UserUtils.java4
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 372dd502e..ba1bd1ab9 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();
}