public ActionResult Login() { if (sysLoginInfo.CurAccount() != null) { return(RedirectToAction("Index", "WebHome")); } else { sysLoginInfo.ClearSession(); httpContextAccessor.HttpContext.Response.Cookies.Delete(ALLKeys.C_ADMINUSER); } return(View("~/WebManager/Views/WebEntrance/Login.cshtml")); }
public ActionResult Logout() { var user = SysLoginInfo.CurAccount(); if (user != null) { accountManager.ClearToken(user.ManagerId); } SysLoginInfo.ClearSession(); AuthenticationHelper.SignOut(ALLKeys.C_ADMINUSER); return(RedirectToAction("Login")); }
public ActionResult Login() { if (SysLoginInfo.CurAccount() != null) { return(RedirectToAction("Index", "WebHome")); } else { SysLoginInfo.ClearSession(); AuthenticationHelper.SignOut(ALLKeys.C_ADMINUSER); } return(View("~/WebManager/Views/WebEntrance/Login.cshtml")); }