Exemple #1
0
        public IActionResult VerifyEmail(int userId, string activationKey)
        {
            ViewBag.Uid           = userId;
            ViewBag.ActivationKey = activationKey;
            bool isVerified = authHandler.VerifyEmail(userId, activationKey);

            if (!isVerified)
            {
                ViewBag.EmailVerificationFailed = "Oops! Unable to verify your email, Please contact your teck deck.";
                return(View("EmailVerification"));
            }
            return(RedirectToAction("Index"));
        }