Temporarily disable anti-forgery validation for HTTPS proxy compatibility
This commit is contained in:
@@ -28,7 +28,7 @@ public class AccountController : Controller
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
// [ValidateAntiForgeryToken] // Temporarily disabled for HTTPS proxy issue
|
||||
public async Task<IActionResult> Login(string username, string password)
|
||||
{
|
||||
Console.WriteLine($"Received Username: '{username}', Password: '{password}'");
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" asp-area="Admin" asp-controller="Account" asp-action="Login">
|
||||
@Html.AntiForgeryToken()
|
||||
@if (ViewData.ModelState[""]?.Errors.Count > 0)
|
||||
{
|
||||
<div class="alert alert-danger" role="alert">
|
||||
|
||||
Reference in New Issue
Block a user