【7.0.1】修复更新密码接口

pull/3/head
fengshuonan 2021-03-07 14:10:22 +08:00
parent 2657c2e9fb
commit 4e5c634e08
2 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,11 @@ public class SysUserDTO {
*/
private String phone;
/**
*
*/
private String password;
/**
*
*/

View File

@ -275,6 +275,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
sysUser.setPassword(passwordStoredEncryptApi.encrypt(sysUserRequest.getNewPassword()));
this.updateById(sysUser);
// 清除缓存中的用户信息
sysUserCacheOperatorApi.remove(String.valueOf(sysUser.getUserId()));
}
@Override