修改全局token有效性认证
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user