修改登录tokne
This commit is contained in:
parent
ca6351ca2e
commit
d4473c259a
@ -81,7 +81,7 @@ class AuthMiddleware implements MiddlewareInterface
|
|||||||
$res = $redis->get('jwt_black_' . $token);
|
$res = $redis->get('jwt_black_' . $token);
|
||||||
if ($res && time() >= $res) {
|
if ($res && time() >= $res) {
|
||||||
// token存在黑名单中
|
// token存在黑名单中
|
||||||
return $this->response->json(fail(HttpEnumCode::HTTP_PROHIBIT));
|
return $this->response->json(fail(HttpEnumCode::TOKEN_ERROR));
|
||||||
}
|
}
|
||||||
|
|
||||||
// jwt验证
|
// jwt验证
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user