个人设置重置密码

master
冯凯 2023-10-31 13:10:14 +08:00
parent 572cea4028
commit 4a9cbf35f7
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ public class SysUserController extends BaseController
public Result resetPwd(@RequestBody SysUser user)
{
// userService.checkUserAllowed(user);
// userService.checkUserDataScope(user.getUserId());
// userService.checkUserDataScope(user.getUserId());
user.setUserId(SecurityUtils.getUserId());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
user.setUpdateBy(SecurityUtils.getUsername());
return toAjax(userService.resetPwd(user));