diff --git a/LittleShop/Areas/Admin/Controllers/AccountController.cs b/LittleShop/Areas/Admin/Controllers/AccountController.cs index 85ebdb9..727eb29 100644 --- a/LittleShop/Areas/Admin/Controllers/AccountController.cs +++ b/LittleShop/Areas/Admin/Controllers/AccountController.cs @@ -28,7 +28,7 @@ public class AccountController : Controller } [HttpPost] - [ValidateAntiForgeryToken] + // [ValidateAntiForgeryToken] // Temporarily disabled for HTTPS proxy issue public async Task Login(string username, string password) { Console.WriteLine($"Received Username: '{username}', Password: '{password}'"); diff --git a/LittleShop/Areas/Admin/Views/Account/Login.cshtml b/LittleShop/Areas/Admin/Views/Account/Login.cshtml index 001644c..fd04978 100644 --- a/LittleShop/Areas/Admin/Views/Account/Login.cshtml +++ b/LittleShop/Areas/Admin/Views/Account/Login.cshtml @@ -24,6 +24,7 @@
+ @Html.AntiForgeryToken() @if (ViewData.ModelState[""]?.Errors.Count > 0) {