protected ActionResult OnAuthenticated(LoginResult result)
        {
            if (!result.Status)
            {
                return(Json(result));
            }
            var        globalLoginId = AppUsers.GetMetaLoginId(AppUsers.GetCatalog(), result.LoginId);
            HttpCookie cookie        = AuthenticationManager.GetCookie(globalLoginId.ToString(CultureInfo.InvariantCulture));

            Response.Cookies.Add(cookie);

            return(Json(result));
        }