hdong: change request model to Body.

This commit is contained in:
YouWeiDH 2024-06-29 18:42:16 +08:00
parent a53c800e3e
commit 4706e665b2

View file

@ -116,7 +116,7 @@ public class UserController : ControllerBase
} }
[AllowAnonymous] [AllowAnonymous]
[HttpPost("/user/resetpassword")] [HttpPost("/user/resetpassword")]
public async Task<bool> ResetUserPassword([FromQuery] UserResetPasswordModel user) public async Task<bool> ResetUserPassword([FromBody] UserResetPasswordModel user)
{ {
return await _userService.ResetUserPassword(user.ToUser()); return await _userService.ResetUserPassword(user.ToUser());
} }