!84 修复用户输入错误用户名或密码错误,登录页面变成默认样式问题

* fix(#I1JTDF): 修复用户输入错误用户名或密码错误,登录页面变成默认样式问题
This commit is contained in:
一事冇诚 2020-08-06 15:21:01 +08:00 committed by Argo
parent 9e963aba7b
commit 4814786ab3
1 changed files with 1 additions and 1 deletions

View File

@ -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<IActionResult> SignInAsync(string userName, bool persistent, string authenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme)