Exemplo n.º 1
0
        public ActionResult Confirm()
        {
            string confirmationToken = Request.QueryString["confirmationCode"];

            WebSecurityService.Logout();

            if (!string.IsNullOrEmpty(confirmationToken))
            {
                if (WebSecurityService.ConfirmAccount(confirmationToken))
                {
                    ViewBag.Message =
                        "Registration Confirmed! Click on the login link at the top right of the page to continue.";
                }
                else
                {
                    ViewBag.Message = "Could not confirm your registration info";
                }
            }

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult LogOff()
        {
            WebSecurityService.Logout();

            return(RedirectToAction("Login", "Account"));
        }
Exemplo n.º 3
0
        // **************************************
        // URL: /Account/LogOff
        // **************************************

        public ActionResult LogOff()
        {
            WebSecurityService.Logout();

            return(RedirectToAction("Index", "Home"));
        }