private Authenticate ( string password ) : System.Web.Mvc.ActionResult | ||
password | string | |
Результат | 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");
}