Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung authored and StyleCIBot committed Jul 4, 2020
1 parent 9bce245 commit be29d2f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/admin/middleware/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle($request, \Closure $next, $permission)
if ($request->isOptions()) {
return $next($request);
}

if (!$request->user) {
return $this->handleNotLoggedIn($request);
}
Expand Down
36 changes: 18 additions & 18 deletions config/jwt.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@

return [
'default' => 'admin',
'apps' => [
'apps' => [
'admin' => [
'token' => [
'uniqidKey' => 'uid',
'signerKey' => 'RvAjzUhtJs',
'notBefore' => 0,
'expiresAt' => 3600,
'refreshTTL' => 7200,
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
'type' => 'Header',
'refresh' => 50001,
'relogin' => 50002,
'iss' => 'client.tant',
'aud' => 'server.tant',
'uniqidKey' => 'uid',
'signerKey' => 'RvAjzUhtJs',
'notBefore' => 0,
'expiresAt' => 3600,
'refreshTTL' => 7200,
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
'type' => 'Header',
'refresh' => 50001,
'relogin' => 50002,
'iss' => 'client.tant',
'aud' => 'server.tant',
'automaticRenewal' => false,
],
'user' => [
'bind' => true,
'bind' => true,
'model' => 'app\\common\\model\\User',
]
]
],
],
],
'manager' => [
// 缓存前缀
'prefix' => 'jwt',
// 黑名单缓存名
'blacklist' => 'blacklist',
// 白名单缓存名
'whitelist' => 'whitelist'
]
];
'whitelist' => 'whitelist',
],
];

0 comments on commit be29d2f

Please sign in to comment.