Explorar o código

Merge branch 'master' of github.com:star7th/showdoc

star7th %!s(int64=8) %!d(string=hai) anos
pai
achega
4b1fe18f99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/Application/Api/Controller/UserController.class.php

+ 1 - 1
server/Application/Api/Controller/UserController.class.php

@@ -6,7 +6,7 @@ class UserController extends BaseController {
 
     //注册
     public function register(){
-        $username = I("username");
+        $username = trim(I("username"));
         $password = I("password");
         $confirm_password = I("confirm_password");
         $v_code = I("v_code");