xielin 6 yıl önce
ebeveyn
işleme
b03a6068e9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/Http/Middleware/JwtAuthMiddleware.php

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

@@ -30,7 +30,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,