// // 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")); }
public ActionResult Login(string returnUrl) { ViewData["AddressesExpected"] = SingleSignOnManager.SignOut().Distinct().ToArray(); ViewBag.ReturnUrl = returnUrl; return(View()); }