feat : close sso
This commit is contained in:
@@ -42,11 +42,11 @@ class JwtAuthMiddleware implements MiddlewareInterface
|
||||
}
|
||||
|
||||
//单点登录
|
||||
if ($this->userCache->getAdminToken($userJwt['data']->id) != $authorization) {
|
||||
return $this->response->json(
|
||||
$this->apiReturn->error(AdminCode::getMessage(AdminCode::LOGIN_TOKEN_ERROR), AdminCode::LOGIN_TOKEN_ERROR)
|
||||
);
|
||||
}
|
||||
// if ($this->userCache->getAdminToken($userJwt['data']->id) != $authorization) {
|
||||
// return $this->response->json(
|
||||
// $this->apiReturn->error(AdminCode::getMessage(AdminCode::LOGIN_TOKEN_ERROR), AdminCode::LOGIN_TOKEN_ERROR)
|
||||
// );
|
||||
// }
|
||||
|
||||
Context::set('admin_id',$userJwt['data']->id);
|
||||
Context::set('role_id',$userJwt['data']->role);
|
||||
|
||||
Reference in New Issue
Block a user