🎨 fix: 修改注释
This commit is contained in:
parent
c02c6cab10
commit
bf24b8a7e5
@ -55,7 +55,6 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
|
|||||||
throw new RuntimeException("用户未登录");
|
throw new RuntimeException("用户未登录");
|
||||||
}
|
}
|
||||||
//存入SecurityContextHolder
|
//存入SecurityContextHolder
|
||||||
//TODO 获取权限信息封装到Authentication中
|
|
||||||
UsernamePasswordAuthenticationToken authenticationToken =
|
UsernamePasswordAuthenticationToken authenticationToken =
|
||||||
new UsernamePasswordAuthenticationToken(loginUser,null,loginUser.getAuthorities());
|
new UsernamePasswordAuthenticationToken(loginUser,null,loginUser.getAuthorities());
|
||||||
SecurityContextHolder.getContext().setAuthentication(authenticationToken);
|
SecurityContextHolder.getContext().setAuthentication(authenticationToken);
|
||||||
|
Loading…
Reference in New Issue
Block a user