mirror of https://gitee.com/y_project/RuoYi.git
当前用户重置密码修改缓存
parent
bf49b35978
commit
900de5db80
|
@ -197,7 +197,10 @@ public class SysUserController extends BaseController
|
|||
user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt()));
|
||||
if (userService.resetUserPwd(user) > 0)
|
||||
{
|
||||
ShiroUtils.setSysUser(userService.selectUserById(user.getUserId()));
|
||||
if (ShiroUtils.getUserId() == user.getUserId())
|
||||
{
|
||||
ShiroUtils.setSysUser(userService.selectUserById(user.getUserId()));
|
||||
}
|
||||
return success();
|
||||
}
|
||||
return error();
|
||||
|
|
Loading…
Reference in New Issue