xielin 6 years ago
parent
commit
c108862abe
1 changed files with 1 additions and 1 deletions
  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,