fix: 为了安全锁屏页面先登出系统
This commit is contained in:
parent
8c1b53982c
commit
7112b9c03b
|
@ -26,10 +26,10 @@ namespace Bootstrap.Admin.Controllers
|
|||
/// 系统锁屏界面
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ActionResult Lock()
|
||||
public async Task<ActionResult> 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue