public ActionResult RestoreForgottenPassword(RestoreForgottenPassword model) { if (model.NewPassword != model.NewPasswordConfirm) return View(model); WebSecurity.ResetPassword(model.Token, model.NewPassword); return RedirectToAction("Login", "Account"); }
public ActionResult RestoreForgottenPassword(string token) { var model = new RestoreForgottenPassword(); model.Token = token; return View(model); }