diff --git a/application/controllers/User.php b/application/controllers/User.php index 166fe2b..5d2f0e8 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -147,7 +147,7 @@ function register($code = null) function do_register() { $username = $this->input->post('username'); - if ( strlen($username)<7||strlen($username)>32 ) + if ( strlen($username)<6 || strlen($username)>32 ) { echo '{"result" : "用户名不合法!" }'; return;