修改密码
This commit is contained in:
+1
@@ -124,6 +124,7 @@ public class UserController extends BaseController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
@PostMapping("/updatePwd")
|
@PostMapping("/updatePwd")
|
||||||
public R updatePwd(@RequestBody @Validated MemberUpdatePasswordDTO updatePasswordDTO) {
|
public R updatePwd(@RequestBody @Validated MemberUpdatePasswordDTO updatePasswordDTO) {
|
||||||
|
updatePasswordDTO.setMemberId(MemberUtils.getMemberId());
|
||||||
return memberService.updatePwd(updatePasswordDTO);
|
return memberService.updatePwd(updatePasswordDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
var loadIndex = layer.msg('请求中...', {icon: 16, shade: 0.01});
|
var loadIndex = layer.msg('请求中...', {icon: 16, shade: 0.01});
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: '/user/password',
|
url: '/user/updatePwd',
|
||||||
data: JSON.stringify(data.field),
|
data: JSON.stringify(data.field),
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|||||||
Reference in New Issue
Block a user