示例#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());
        }
示例#2
0
        public ActionResult LogOff()
        {
            WebSecurityService.Logout();

            return(RedirectToAction("Login", "Account"));
        }
示例#3
0
        // **************************************
        // URL: /Account/LogOff
        // **************************************

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

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