From 7112b9c03ba34da1f23fb39196ec7716a7b9781f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 21 Aug 2019 10:45:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BA=E4=BA=86=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E9=94=81=E5=B1=8F=E9=A1=B5=E9=9D=A2=E5=85=88=E7=99=BB=E5=87=BA?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Controllers/AccountController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/Controllers/AccountController.cs b/Bootstrap.Admin/Controllers/AccountController.cs index b1848642..b0bd08dd 100644 --- a/Bootstrap.Admin/Controllers/AccountController.cs +++ b/Bootstrap.Admin/Controllers/AccountController.cs @@ -26,10 +26,10 @@ namespace Bootstrap.Admin.Controllers /// 系统锁屏界面 /// /// - public ActionResult Lock() + public async Task Lock() { var user = UserHelper.RetrieveUserByUserName(User.Identity.Name); - //await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); + await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); var urlReferrer = Request.Headers["Referer"].FirstOrDefault(); return View(new LockModel(this) {