Esempio n. 1
0
 public ActionResult ResetPassword(Customer customer)
 {
     ViewBag.Sent = false;
     if (customer.EmailAddress != null)
     {
         db.ResetPassord(customer.EmailAddress, customer.PrimarySchool, customer.Password, customer.Repassword);
         ViewBag.Sent       = true;
         ViewBag.Successful = "Successufully signed up: Thank you for joining us";
     }
     return(RedirectToAction("Index", "Home"));
 }