示例#1
0
        //
        // POST: /Account/LogOff
        //[HttpPost]
        //[ValidateAntiForgeryToken]
        public ActionResult LogOff()
        {
            FormsAuthentication.SignOut();
            ViewBag.AddressesExpected = SingleSignOnManager.SignOut().Distinct().ToArray();

            //return Redirect("/Account/Login?ReturnUrl="+ HttpUtility.UrlEncode(Request.UrlReferrer.AbsoluteUri.ToString()));
            return(View("LogOff"));
        }
示例#2
0
 public ActionResult Login(string returnUrl)
 {
     ViewData["AddressesExpected"] = SingleSignOnManager.SignOut().Distinct().ToArray();
     ViewBag.ReturnUrl             = returnUrl;
     return(View());
 }