1.prevent user login when user status is disable

main
Gary 9 months ago
parent 90d710f099
commit f298ad1f31

@ -210,6 +210,9 @@ public class UserInfoService {
user.setLastUseDeviceBrand(userInfo.getLastUseDeviceBrand());
user.setLastLoginIp(userInfo.getLastLoginIp());
}
if (!UserStatusEnum.ENABLE.getStatus().equals(userInfo.getStatus())) {
return null;
}
user.setLastLoginTime(new Date());
userInfoDao.save(user);
return Constants.TOKEN_PREFIX

Loading…
Cancel
Save