From a55e9b4070eb856999a9a6c78eab94aec0041f4e Mon Sep 17 00:00:00 2001
From: Chengwei Yang <yangchengwei@qiyi.com>
Date: Wed, 30 Sep 2015 09:09:09 +0800
Subject: Change minimal length of team name to 3 character

team named in 3 character in non-English language is very common, e.g. in
Chinese.

Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
---
 web/react/components/team_signup_url_page.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/components/team_signup_url_page.jsx')

diff --git a/web/react/components/team_signup_url_page.jsx b/web/react/components/team_signup_url_page.jsx
index 1b722d611..a3f89a217 100644
--- a/web/react/components/team_signup_url_page.jsx
+++ b/web/react/components/team_signup_url_page.jsx
@@ -35,8 +35,8 @@ export default class TeamSignupUrlPage extends React.Component {
         if (cleanedName !== name || !urlRegex.test(name)) {
             this.setState({nameError: "Use only lower case letters, numbers and dashes. Must start with a letter and can't end in a dash."});
             return;
-        } else if (cleanedName.length <= 3 || cleanedName.length > 15) {
-            this.setState({nameError: 'Name must be 4 or more characters up to a maximum of 15'});
+        } else if (cleanedName.length <= 2 || cleanedName.length > 15) {
+            this.setState({nameError: 'Name must be 3 or more characters up to a maximum of 15'});
             return;
         }
 
-- 
cgit v1.2.3-1-g7c22

