Exemplo n.º 1
0
        public ActionResult ResetPassword(ResetPasswordViewModel model)
        {
            if (ModelState.IsValid)
            {
                var passReseted = WebSecurity.ResetPassword(model.ResetToken, model.Password);
                if (passReseted)
                {
                    return RedirectToAction("PasswordResetComplete", "Account");
                }

                ModelState.AddModelError(String.Empty, Messages.RESET_PASSWORD_ERROR);
            }

            return View(model);
        }
Exemplo n.º 2
0
 public ActionResult ResetPassword(string token)
 {
     var model = new ResetPasswordViewModel { ResetToken = token };
     return View(model);
 }