15954078560 2 лет назад
Родитель
Сommit
1b82fced9d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      application/api/controller/User.php

+ 2 - 1
application/api/controller/User.php

@@ -2025,7 +2025,8 @@ class User extends Api
             $ret = $this->auth->register($mobile, Random::alnum(), '', $mobile, []);
         }
         if ($ret) {
-            $data = ['userinfo' => $this->auth->getUserinfo()];
+//            $data = ['userinfo' => $this->auth->getUserinfo()];
+            $data = $this->auth->getUserinfo();
             $this->success(__('Logged in successful'), $data);
         } else {
             $this->error($this->auth->getError());