Skip to content

Commit

Permalink
Merge pull request #28 from GhandchiMorteza/fix/login-body
Browse files Browse the repository at this point in the history
fix: changing login query string into body
  • Loading branch information
Ftm-Sayadzadeh authored Aug 28, 2024
2 parents f5c8111 + 38331cc commit 52ce386
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 52ce386

Please sign in to comment.