|
@@ -705,6 +705,7 @@ public class UserController {
|
|
|
// 如果新密码为空,则不更换密码
|
|
|
if ( StrUtil.isNotBlank ( userDTO.getNewPassword ( ) ) ) {
|
|
|
userDTO.setPassword ( SecurityUtils.encryptPassword ( userDTO.getNewPassword ( ) ) );
|
|
|
+ userDTO.setUpPassword("0");
|
|
|
}
|
|
|
if ( !UserUtils.isCheckLoginName ( userDTO.getOldLoginName ( ), userDTO.getLoginName ( ), userDTO.getTenantDTO ( ).getId ( ) ) ) {
|
|
|
return ResponseEntity.badRequest ( ).body ( "保存用户'" + userDTO.getLoginName ( ) + "'失败,登录名已存在!" );
|