Exemple #1
0
 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"));
 }
Exemple #2
0
        public ActionResult Logout()
        {
            var user = SysLoginInfo.CurAccount();

            if (user != null)
            {
                accountManager.ClearToken(user.ManagerId);
            }

            SysLoginInfo.ClearSession();
            AuthenticationHelper.SignOut(ALLKeys.C_ADMINUSER);
            return(RedirectToAction("Login"));
        }
Exemple #3
0
 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"));
 }