修改密码
This commit is contained in:
+1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user