mirror of https://gitee.com/stylefeng/roses
【7.0.1】修复更新密码接口
parent
2657c2e9fb
commit
4e5c634e08
|
@ -59,6 +59,11 @@ public class SysUserDTO {
|
|||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue