Esempio n. 1
0
        public LoginModel(string username,HttpRequestBase Request, string sessionid)
        {
            if (Request.IsAuthenticated)
            {

                var cookie = Request.Cookies[FormsAuthentication.FormsCookieName];
                var ticketInfo = FormsAuthentication.Decrypt(cookie.Value);
                ServiceReference2.WebService1Soap ws = new ServiceReference2.WebService1SoapClient();
                this.LoginDS = ws.Login("bcce7f7ad7596f963f4adb23d713e0d4", "329392de8a55edf86c0881a57381cbe6", ticketInfo.Name, ticketInfo.UserData, sessionid);
            }
            else
            {

                ServiceReference2.WebService1Soap ws = new ServiceReference2.WebService1SoapClient();
                this.LoginDS = ws.GetGuestInfo("bcce7f7ad7596f963f4adb23d713e0d4", "329392de8a55edf86c0881a57381cbe6");

            }
        }