diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/user/SysUserDTO.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/user/SysUserDTO.java index 211186a73..717e9316d 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/user/SysUserDTO.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/user/SysUserDTO.java @@ -59,6 +59,11 @@ public class SysUserDTO { */ private String phone; + /** + * 密码 + */ + private String password; + /** * 电话 */ diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java index 406691ab5..1274590bd 100644 --- a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java @@ -275,6 +275,9 @@ public class SysUserServiceImpl extends ServiceImpl impl sysUser.setPassword(passwordStoredEncryptApi.encrypt(sysUserRequest.getNewPassword())); this.updateById(sysUser); + + // 清除缓存中的用户信息 + sysUserCacheOperatorApi.remove(String.valueOf(sysUser.getUserId())); } @Override