Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }