mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-26 01:48:02 +00:00
新增认证对象简化权限验证
This commit is contained in:
@@ -59,7 +59,7 @@ public class AuthFilter implements GlobalFilter, Ordered
|
||||
Claims claims = JwtUtils.parseToken(token);
|
||||
if (claims == null)
|
||||
{
|
||||
return unauthorizedResponse(exchange, "token已过期或验证不正确!");
|
||||
return unauthorizedResponse(exchange, "令牌已过期或验证不正确!");
|
||||
}
|
||||
String userkey = JwtUtils.getUserKey(claims);
|
||||
boolean islogin = redisService.hasKey(getTokenKey(userkey));
|
||||
|
Reference in New Issue
Block a user