From cca7da1472f2adb0770ba9171a8f2783463a4543 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 28 Sep 2019 08:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(#I12T0Y):=20=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E9=BB=98=E8=AE=A4=E6=94=AF=E6=8C=81?= =?UTF-8?q?QQ=E5=85=BC=E5=AE=B9=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment comment #I12T0Y #Issue link https://gitee.com/LongbowEnterprise/dashboard/issues?id=I12T0Y --- src/admin/Bootstrap.Admin/Controllers/AccountController.cs | 2 +- src/admin/Bootstrap.Admin/appsettings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs index 197e5fc7..479ed989 100644 --- a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs +++ b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs @@ -21,7 +21,6 @@ namespace Bootstrap.Admin.Controllers /// Account controller. /// [AllowAnonymous] - [AutoValidateAntiforgeryToken] public class AccountController : Controller { private const string MobileSchema = "Mobile"; @@ -125,6 +124,7 @@ namespace Bootstrap.Admin.Controllers /// Password. /// Remember. [HttpPost] + [IgnoreAntiforgeryToken] public async Task Login(string userName, string password, string remember) { var auth = UserHelper.Authenticate(userName, password); diff --git a/src/admin/Bootstrap.Admin/appsettings.json b/src/admin/Bootstrap.Admin/appsettings.json index ca1faca0..7e8836b4 100644 --- a/src/admin/Bootstrap.Admin/appsettings.json +++ b/src/admin/Bootstrap.Admin/appsettings.json @@ -15,7 +15,7 @@ "ConnectionStrings": { "ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa" }, - "SupportQQBrowser": false, + "SupportQQBrowser": true, "DB": [ { "Enabled": false,