public ActionResult logout() { ViewData.Clear(); TempData.Clear(); Session.Clear(); var auth = new logic.Rules.Authentication(Request.GetOwinContext()); auth.Logout(); return(RedirectToRoute("home")); }
public ActionResult ForgotPassword() { ViewData.Clear(); TempData.Clear(); Session.Clear(); var auth = new logic.Rules.Authentication(Request.GetOwinContext()); auth.Logout(); return(View()); }
public ActionResult ResetPassword(string t) { var model = new bat.logic.ViewModels.Homepage.ResetPassword(); try { ViewData.Clear(); TempData.Clear(); Session.Clear(); var auth = new logic.Rules.Authentication(Request.GetOwinContext()); auth.Logout(); model = _passwdService.VerifyToken(t); } catch (Exception ex) { ViewBag.Response = ex.Message; } return(View(model)); }