Pārlūkot izejas kodu

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

star7th 8 gadi atpakaļ
vecāks
revīzija
4b1fe18f99

+ 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");