fix: 为了安全锁屏页面先登出系统

This commit is contained in:
Argo Zhang 2019-08-21 10:45:02 +08:00
parent 8c1b53982c
commit 7112b9c03b
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -26,10 +26,10 @@ namespace Bootstrap.Admin.Controllers
/// 系统锁屏界面 /// 系统锁屏界面
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public ActionResult Lock() public async Task<ActionResult> Lock()
{ {
var user = UserHelper.RetrieveUserByUserName(User.Identity.Name); var user = UserHelper.RetrieveUserByUserName(User.Identity.Name);
//await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
var urlReferrer = Request.Headers["Referer"].FirstOrDefault(); var urlReferrer = Request.Headers["Referer"].FirstOrDefault();
return View(new LockModel(this) return View(new LockModel(this)
{ {