xielin 6 년 전
부모
커밋
c108862abe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Middleware/JwtAuthMiddleware.php

+ 1 - 1
app/Http/Middleware/JwtAuthMiddleware.php

@@ -31,7 +31,7 @@ class JwtAuthMiddleware
                 return response()->json($error);
             }
             $data = JWTAuth::decode($token)['user'];
-            if ($data->sign !== md5($data->uid . env('JWT_SECRET'))) {
+            if ($data->sign !== md5($data->uid . config('customer.jwt_secret'))) {
                 $error = [
                     'message' => 'request is not allow',
                     'code' => 401,