I am trying to post my username and password from a Blazor page (.razor) to a Razor Page(.cshtml) but I get http error 400 all the time.
LoginControl.razor
<form method="post" action="login">
<input type="text"
name="username"
@bind="@Username"
placeholder="User Name" />
<input type="password"
name="password"
placeholder="Password"
@bind="@Password" />
<button class="ml-md-auto btn btn-primary">Loggin</button>
</form>
Login.cshtml.cs
public async Task<IActionResult> OnPostAsync([FromServices] IUserProvider provider, string username, string password)
{
Login stuff
}