public ActionResult ResetPassword(ResetPasswordModel model) { if (ModelState.IsValid) { var token = string.Empty; if (model.ReturnToken.StartsWith("=3D")) { token = model.ReturnToken.Substring(3); } //bool resetResponse = WebSecurity.ResetPassword(model.ReturnToken, model.Password); bool resetResponse = WebSecurity.ResetPassword(token, model.Password); if (resetResponse) { ViewBag.Message = "Successfully Changed"; } else { ViewBag.Message = "Something went horribly wrong!"; } } return View(model); }
public ActionResult ResetPassword(string rt) { ResetPasswordModel model = new ResetPasswordModel(); model.ReturnToken = rt; return View(model); }