| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<?> checkUserIsEffective(SysUser sysUser) { |
| | | public Result<?> checkUserIsEffective(SysUser sysUser, String loginType) { |
| | | Result<?> result = new Result<Object>(); |
| | | //情况1:根据用户信息查询,该用户不存在 |
| | | if (sysUser == null) { |
| | |
| | | } |
| | | //情况4:根据用户信息查询,该用户密码系首次使用,需修改密码 |
| | | List<DictModel> dictList = sysDictService.queryEnableDictItemsByCode(CommonConstant.DICT_USER_FIRST_LOGIN); |
| | | if (dictList != null && !dictList.isEmpty()) { |
| | | if (!"terminal".equals(loginType) && dictList != null && !dictList.isEmpty()) { |
| | | if (CommonConstant.DEL_FLAG_1.equals(Integer.valueOf(dictList.get(0).getValue())) && CommonConstant.DEL_FLAG_1.equals(sysUser.getPasswordFlag())) { |
| | | baseCommonService.addLog("用户登录失败,用户名:" + sysUser.getUsername() + "系首次登录系统,请重置密码!", CommonConstant.LOG_TYPE_1, null); |
| | | result.setCode(5001); |