Exemplo n.º 1
0
 public ActionResult ResetPasswordConfirmation(string Id)
 {
     ResetPasswordConfirmModel model = new ResetPasswordConfirmModel() { Token = Id };
     return View(model);
 }
Exemplo n.º 2
0
 public ActionResult ResetPasswordConfirmation(ResetPasswordConfirmModel model)
 {
     if (WebSecurity.ResetPassword(model.Token, model.NewPassword))
     {
         return RedirectToAction("PasswordResetSuccess");
     }
     return RedirectToAction("PasswordResetFailure");
 }