BolfTracker.Web.Controllers.PlayerController.Authenticate C# (CSharp) Method

Authenticate() private method

private Authenticate ( string password ) : System.Web.Mvc.ActionResult
password string
return System.Web.Mvc.ActionResult
        public ActionResult Authenticate(string password)
        {
            var privateBetaCode = ConfigurationManager.AppSettings["PrivateBetaCode"];

            if (password == privateBetaCode)
            {
                FormsAuthentication.SetAuthCookie("PrivateBetaUser", false);

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

            return RedirectToAction("Login");
        }