Exemple #1
0
        public ActionResult Forgot(string email)
        {
            if (email == null || email == "")
            {
                return(View());
            }
            else
            {
                if (CustomerData.CheckCustomerEmail(email) == true)
                {
                    Session["sessionid"] = Guid.NewGuid().ToString();
                    return(RedirectToAction("Reset", "Home"));
                }

                else
                {
                    ViewBag.invalid = email;
                    return(View());
                }
            }
        }