|
|
|
@ -2,7 +2,6 @@ package cn.estsh.i3plus.core.apiservice.controller.base;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.base.ISynchronizedService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.base.ISystemInitService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.base.ISystemLoginService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.base.ISystemLoginStrategyService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.*;
|
|
|
|
|
import cn.estsh.i3plus.core.apiservice.controller.busi.PersonnelController;
|
|
|
|
@ -133,7 +132,7 @@ public class WhiteController extends CoreBaseController {
|
|
|
|
|
private ISysConfigService configService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISystemLoginService loginService;
|
|
|
|
|
private ISysUserPasswordService userPasswordService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private SysUserPasswordUtil userPasswordUtil;
|
|
|
|
@ -720,6 +719,24 @@ public class WhiteController extends CoreBaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/update-expired-password")
|
|
|
|
|
@ApiOperation(value = "修改密码", notes = "松下修改当前登录用户密码")
|
|
|
|
|
public ResultBean updateSysUserPassword(String loginName, String password, String newPwd) {
|
|
|
|
|
try {
|
|
|
|
|
// 数据校验
|
|
|
|
|
ValidatorBean.checkNotNull(password, "旧密码不能为空");
|
|
|
|
|
ValidatorBean.checkNotNull(newPwd, "新密码不能为空");
|
|
|
|
|
ValidatorBean.checkNotNull(loginName, "用户名不能为空");
|
|
|
|
|
|
|
|
|
|
userPasswordService.updatePasswordWizoutSession(loginName, password, newPwd.trim());
|
|
|
|
|
return ResultBean.success("修改密码成功,请重新登陆").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/license")
|
|
|
|
|
@ApiOperation(value = "更新授权", notes = "更新授权")
|
|
|
|
|
public ResultBean updateLicense(String content) {
|
|
|
|
|