Skip to content

Commit

Permalink
fix: changing login query string into body
Browse files Browse the repository at this point in the history
  • Loading branch information
GhandchiMorteza committed Aug 28, 2024
1 parent f5c8111 commit 38331cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public AuthenticationController(IAuthenticationService authenticationService)
}

[HttpPost("login")]
public async Task<IActionResult> Login([FromQuery] LoginUserDto request)
public async Task<IActionResult> Login( LoginUserDto request)
{
var response = await _authenticationService.Login(request.Username, request.Password);
return StatusCode((int)response.Type, response);
Expand Down

0 comments on commit 38331cc

Please sign in to comment.