public ActionResult ResetPassword(ResetPasswordModel m) { if(ModelState.IsValid) { bool resetResponse = WebSecurity.ResetPassword(m.ReturnToken, m.password); if(resetResponse) { ViewBag.Message = "Successfully Changed"; } else { ViewBag.Message = "There was an error please contact administrator"; } } return View(m); }
public ActionResult ResetPassword(string rt) { ResetPasswordModel m = new ResetPasswordModel(); m.ReturnToken = rt; return View(m); }