Esempio n. 1
0
 public ActionResult ResetPassword(CustomPasswordReset reset)
 {
     if (ModelState.IsValid)
     {
         TittleUserServices _UserService = new TittleUserServices();
         if (_UserService.ResetPassword(reset.UserID, reset.Password, reset.Token))
         {
             ViewBag.ErrorMessage = "Password reset successfully.";
             return(RedirectToAction("Index", "Login"));
         }
     }
     ViewBag.ErrorMessage = "Please fill all the fields.";
     return(View("Index", reset));
 }