Esempio n. 1
0
        public ActionResult SecurityQuestion(UserData userdata, FormCollection fc1)
        {
            UserCredentials usercr = new UserCredentials();

            usercr = LetsShopImplementation.LoginAfterForgotPassword(userdata.UserId, userdata.SecurityAnswer);
            if (usercr.Password == "")
            {
                ViewBag.message = "Security answer does not match";
                return(View(LetsShopImplementation.ForgotPassword(userdata.UserId)));
            }
            else
            {
                Login(usercr, fc1);
                return(RedirectToAction("Index", "Home"));
            }
        }
Esempio n. 2
0
        //______________________________________________________________________________________

        /// <summary>
        /// This method is used to display the security question so that the user can login with his security answer.
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        public ActionResult SecurityQuestion(string id)
        {
            return(View(LetsShopImplementation.ForgotPassword(id)));
        }