Commit b757c5b7 by RuoYi

更新密码重置用户信息

parent 9c927e62
...@@ -195,7 +195,12 @@ public class SysUserController extends BaseController ...@@ -195,7 +195,12 @@ public class SysUserController extends BaseController
{ {
user.setSalt(ShiroUtils.randomSalt()); user.setSalt(ShiroUtils.randomSalt());
user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt())); user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt()));
return toAjax(userService.resetUserPwd(user)); if (userService.resetUserPwd(user) > 0)
{
ShiroUtils.setSysUser(userService.selectUserById(user.getUserId()));
return success();
}
return error();
} }
@RequiresPermissions("system:user:remove") @RequiresPermissions("system:user:remove")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment