Ejemplo n.º 1
0
        public static string LayFullName(FormsIdentity FormsId)
        {
            string FullName = string.Empty;
            string userData = LibEncrypt.Decrypt(FormsId.Ticket.UserData, true);

            string[] data = userData.Split(",".ToCharArray());
            FullName = data[3];
            return(FullName);
        }
Ejemplo n.º 2
0
        public static string LayUserCode(FormsIdentity FormsId)
        {
            string UserCode = string.Empty;
            string userData = LibEncrypt.Decrypt(FormsId.Ticket.UserData, true);

            string[] data = userData.Split(",".ToCharArray());
            UserCode = data[1];
            return(UserCode);
        }
Ejemplo n.º 3
0
        public static string LayEmail(FormsIdentity FormsId)
        {
            string Email    = string.Empty;
            string userData = LibEncrypt.Decrypt(FormsId.Ticket.UserData, true);

            string[] data = userData.Split(",".ToCharArray());
            Email = data[2];
            return(Email);
        }
Ejemplo n.º 4
0
        public static int LayUserId(FormsIdentity FormsId)
        {
            int    Id       = -1;
            string userData = LibEncrypt.Decrypt(FormsId.Ticket.UserData, true);

            string[] data = userData.Split(",".ToCharArray());
            if (int.TryParse(data[0], out Id))
            {
                return(Id);
            }
            return(Id);
        }