private ActionResult HandleUnauthenticatedOrUnregisteredUser(LiveIdAuthResult result)
        {
            LearnPageModel learnPageModel = new LearnPageModel();

            if (result != null)
            {
                learnPageModel.LiveIdResult = result;
            }

            return(View("~/offers/earn/views/learn/learn.cshtml", learnPageModel));
        }
        public ActionResult Index()
        {
            LiveIdAuthResult liveIdAuthResult = HttpContext.Items["liveauthstate"] as LiveIdAuthResult;
            LearnPageModel   learnPageModel   = new LearnPageModel();

            if (liveIdAuthResult != null)
            {
                learnPageModel.LiveIdResult = liveIdAuthResult;
            }

            return(View("~/offers/earn/views/learn/learn.cshtml", learnPageModel));
        }
Beispiel #3
0
        // TODO: Replace with a different auth model
        public ActionResult Index()
        {
            LiveIdAuthResult liveIdAuthResult = new LiveIdAuthResult();

            LearnPageModel learnPageModel = new LearnPageModel();

            if (liveIdAuthResult != null)
            {
                learnPageModel.LiveIdResult = liveIdAuthResult;
            }

            return(View("~/offers/earn/views/learn/learn.cshtml", learnPageModel));
        }
        public ActionResult Index()
        {
            LiveIdAuthResult liveIdAuthResult = HttpContext.Items["liveauthstate"] as LiveIdAuthResult;

            if (!User.Identity.IsAuthenticated)
            {
                LearnPageModel learnPageModel = new LearnPageModel();
                if (liveIdAuthResult != null)
                {
                    learnPageModel.LiveIdResult = liveIdAuthResult;
                }

                return(View("~/offers/earn/views/learn/learn.cshtml", learnPageModel));
            }

            return(Content(liveIdAuthResult.Anid));
        }