瀏覽代碼

Update UserController.class.php

star7th 7 年之前
父節點
當前提交
56ab38f813
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");