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