!84 修复用户输入错误用户名或密码错误,登录页面变成默认样式问题
* fix(#I1JTDF): 修复用户输入错误用户名或密码错误,登录页面变成默认样式问题
This commit is contained in:
parent
9e963aba7b
commit
4814786ab3
|
@ -164,7 +164,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
|
|
||||||
var auth = UserHelper.Authenticate(userName, password);
|
var auth = UserHelper.Authenticate(userName, password);
|
||||||
HttpContext.Log(userName, auth);
|
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)
|
private async Task<IActionResult> SignInAsync(string userName, bool persistent, string authenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme)
|
||||||
|
|
Loading…
Reference in New Issue