//[ValidateAntiForgeryToken]
        public async Task<ActionResult> Login(LoginViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            if (model.Validate())
            {
                Session["gtoken_section"] = model.session;
                var api = GoPlayApi.Instance;
                var loginOauth = CreateLoginOauth();
                if (!loginOauth)
                {
                    model.loginFB = false;
                    model.errLoginOauth = true;
                    return View(model);
                }
                var user = api.GetUserByUserName(model.username);
                if (user.HasData)
                {
                    return await loginUser(api, user.Data, model.returnURL, model.remember_account == "on" ? true : false);
                }
            }
            ModelState.AddModelError("CustomError", Resources.Resources.Username_and_or_password_are_not_correct);
            return View(model);
        }
        public ActionResult Login(string returnUrl)
        {

            var model = new LoginViewModel();
            model.returnURL = returnUrl;
            model.loginFB = false;
            if (Session["facebook_token"] != null)
            {
                model.loginFB = true;
                Session["facebook_token"] = null;
            }
            return View(model);
        }