修改全局token有效性认证

This commit is contained in:
ajaxfan
2021-05-10 14:06:26 +08:00
parent f24554dc41
commit dede933267
4 changed files with 60 additions and 6 deletions

View File

@ -33,9 +33,6 @@ public class BaseCacheUserServiceImpl implements IBaseCacheUserService {
BaseCacheUser buser = new BaseCacheUser();
BeanUtils.copyProperties(SecurityContextHolder.getContext().getAuthentication().getPrincipal(), buser);
if (Objects.isNull(buser.getUserId())) {
throw new AuthFailureException("登陆已超期");
}
log.debug("Current user principal: " + buser);
return buser;