|
@@ -268,9 +268,11 @@ public class UserController : BaseController
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost("change-pwd")]
|
|
|
- public async Task ChangePassword([FromBody] UserChangePasswordDto dto)
|
|
|
+ public async Task ChangePassword([FromBody] ChangePasswordDto dto)
|
|
|
{
|
|
|
- var changepwdRsp = await _identityClient.ChangePasswordAsync(dto, HttpContext.RequestAborted);
|
|
|
+ var changepwdDto = _mapper.Map<UserChangePasswordDto>(dto);
|
|
|
+ changepwdDto.UserId = _sessionContext.RequiredUserId;
|
|
|
+ var changepwdRsp = await _identityClient.ChangePasswordAsync(changepwdDto, HttpContext.RequestAborted);
|
|
|
CheckHttpRequestSuccess(changepwdRsp, "ChangePasswordAsync");
|
|
|
}
|
|
|
|