소스 검색

修改登录

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();