Beispiel #1
0
 public static UserTicket Build(string TicketValue)
 {
     string[] vs = TicketValue.Split('#');
     UserTicket ut = new UserTicket();
     if (vs.Length > 6)
     {
         BzureUser user = new BzureUser(vs[1], vs[2])
         {
             RoleValue = int.Parse(vs[0]),
             Password = "******",
             State = int.Parse(vs[3]),
             OpenID = vs[4],
             EMail = vs[5],
             NickName = vs[6]
         };
         ut.User = user;
     }
     if (vs.Length > 7)
     {
         ut.TicketData = vs[7];
     }
     return ut;
 }
Beispiel #2
0
        public static UserTicket Build(string TicketValue)
        {
            string[]   vs = TicketValue.Split('#');
            UserTicket ut = new UserTicket();

            if (vs.Length > 6)
            {
                BzureUser user = new BzureUser(vs[1], vs[2])
                {
                    RoleValue = int.Parse(vs[0]),
                    Password  = "******",
                    State     = int.Parse(vs[3]),
                    OpenID    = vs[4],
                    EMail     = vs[5],
                    NickName  = vs[6]
                };
                ut.User = user;
            }
            if (vs.Length > 7)
            {
                ut.TicketData = vs[7];
            }
            return(ut);
        }