Selaa lähdekoodia

Update UserController.class.php

star7th 7 vuotta sitten
vanhempi
commit
56ab38f813
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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");