public ActionResult Reset(ResetPasswordModel model) { if (ModelState.IsValid && WebSecurity.ResetPassword(model.ResetToken, model.Password)) { return RedirectToAction("Index", "Home"); } // If we got this far, something failed, redisplay form ModelState.AddModelError("", "The reset request has been expired."); return View(model); }
public ActionResult Reset(string token) { ResetPasswordModel model = new ResetPasswordModel(); model.ResetToken = token; return View(model); }