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