修改密码

This commit is contained in:
2026-09-28 22:14:39 +08:00
parent ab0f064ea6
commit 9994c43bb7
2 changed files with 2 additions and 1 deletions
@@ -124,6 +124,7 @@ public class UserController extends BaseController {
@ResponseBody
@PostMapping("/updatePwd")
public R updatePwd(@RequestBody @Validated MemberUpdatePasswordDTO updatePasswordDTO) {
updatePasswordDTO.setMemberId(MemberUtils.getMemberId());
return memberService.updatePwd(updatePasswordDTO);
}
@@ -55,7 +55,7 @@
var loadIndex = layer.msg('请求中...', {icon: 16, shade: 0.01});
$.ajax({
type: "POST",
url: '/user/password',
url: '/user/updatePwd',
data: JSON.stringify(data.field),
contentType: "application/json",
dataType: "json",