|
@@ -1,6 +1,7 @@
|
|
|
package com.fjhx.tenant.controller.tenant;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
import com.ruoyi.common.annotation.RepeatSubmit;
|
|
|
import com.ruoyi.common.annotation.TenantIgnore;
|
|
@@ -84,6 +85,11 @@ public class UserTenantController extends BaseController {
|
|
|
throw new ServiceException("修改用户'" + user.getUserName() + "'失败,登录账号已存在");
|
|
|
}
|
|
|
user.setUpdateBy(getUsername());
|
|
|
+
|
|
|
+ String password = user.getPassword();
|
|
|
+ if (StrUtil.isNotBlank(password)) {
|
|
|
+ user.setPassword(SecurityUtils.encryptPassword(password));
|
|
|
+ }
|
|
|
userService.updateUser(user);
|
|
|
}
|
|
|
|