Esempio n. 1
0
        // check exist user
        public ActionResult ConfirmResetPassword(string UserEmail)
        {
            // Declare new DataAccess object
            UserDa dataAccess = new UserDa();

            var user = dataAccess.getUserByEmail(UserEmail);

            if (user != null)
            {
                var suscess = dataAccess.ConfirmEmail(user);
                if (suscess > 0)
                {
                    ViewBag.confirmPasswordSuccess = "Mật khẩu đã được thay đổi! Vui lòng đăng nhập!";
                    return(this.RedirectToAction("Login", "Login"));
                }
            }

            return(new EmptyResult());
        }
Esempio n. 2
0
        // check exist user
        public ActionResult ConfirmEmail(string UserEmail)
        {
            // Declare new DataAccess object
            UserDa dataAccess = new UserDa();

            var user = dataAccess.getUserByEmail(UserEmail);

            if (user != null)
            {
                long suscess = dataAccess.ConfirmEmail(user);
                if (suscess > 0)
                {
                    ViewBag.confirmEmailSuccess = "Xác nhận Email thành công! Vui lòng đăng nhập!";
                    return(this.RedirectToAction("Login", "Login"));
                }
            }

            return(new EmptyResult());
        }