Example #1
0
        protected void LoginCtrl_LoggedIn(object sender, EventArgs e)
        {
            WingTipsToys.Logic.CarrinhoActions usuarioCarrinhoCompras = new WingTipsToys.Logic.CarrinhoActions();
            string carrinhoId = usuarioCarrinhoCompras.GetCarrinhoId();

            usuarioCarrinhoCompras.MigrateCart(carrinhoId, User.Identity.Name.ToString());
        }
Example #2
0
        protected void RegisterUser_CreatedUser(object sender, EventArgs e)
        {
            FormsAuthentication.SetAuthCookie(RegisterUser.UserName, createPersistentCookie: false);

            var    usuarioCarrinhoCompras = new WingTipsToys.Logic.CarrinhoActions();
            String carrinhoId             = usuarioCarrinhoCompras.GetCarrinhoId();

            usuarioCarrinhoCompras.MigrateCart(carrinhoId, RegisterUser.UserName.ToString());



            string continueUrl = RegisterUser.ContinueDestinationPageUrl;

            if (!OpenAuth.IsLocalUrl(continueUrl))
            {
                continueUrl = "~/";
            }
            Response.Redirect(continueUrl);
        }