From 4814786ab33dbf18aae6548b8c8a62040deb7883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=BA=8B=E5=86=87=E8=AF=9A?= <505496523@qq.com> Date: Thu, 6 Aug 2020 15:21:01 +0800 Subject: [PATCH] =?UTF-8?q?!84=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E9=94=99=E8=AF=AF=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E6=88=96=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=EF=BC=8C=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=8F=98=E6=88=90=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=20*=20fix(#I1JTDF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E8=BE=93=E5=85=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=94=A8=E6=88=B7=E5=90=8D=E6=88=96=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8F=98=E6=88=90=E9=BB=98=E8=AE=A4=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Controllers/AccountController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs index 3d1888b4..dfd8ad13 100644 --- a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs +++ b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs @@ -164,7 +164,7 @@ namespace Bootstrap.Admin.Controllers var auth = UserHelper.Authenticate(userName, password); HttpContext.Log(userName, auth); - return auth ? await SignInAsync(userName, remember == "true") : View("Login", new LoginModel() { AuthFailed = true }); + return auth ? await SignInAsync(userName, remember == "true") : LoginView("", new LoginModel() { AuthFailed = true }); } private async Task SignInAsync(string userName, bool persistent, string authenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme)