public ActionResult Confirm() { string confirmationToken = Request.QueryString["confirmationCode"]; WebSecurityService.Logout(); if (!string.IsNullOrEmpty(confirmationToken)) { if (WebSecurityService.ConfirmAccount(confirmationToken)) { ViewBag.Message = "Registration Confirmed! Click on the login link at the top right of the page to continue."; } else { ViewBag.Message = "Could not confirm your registration info"; } } return(View()); }
public ActionResult LogOff() { WebSecurityService.Logout(); return(RedirectToAction("Login", "Account")); }
// ************************************** // URL: /Account/LogOff // ************************************** public ActionResult LogOff() { WebSecurityService.Logout(); return(RedirectToAction("Index", "Home")); }