lip 1 ヶ月 前
コミット
f59fd3753e
1 ファイル変更4 行追加1 行削除
  1. 4 1
      app/common/controller/User.php

+ 4 - 1
app/common/controller/User.php

@@ -44,7 +44,10 @@ class User
 
      public function login(){
 
-        $token = $this->request->header('Authorization');
+        $token = $this->request->param('token');
+        if (!$token) {
+            return error(lang('user.token_error'));
+        }
         
         try {
             Db::startTrans();