Beispiel #1
0
        public static User GetUser(string securityToken)
        {
            int?userID = null;

            if (!String.IsNullOrEmpty(securityToken))
            {
                userID = SecurityToken.FromString(securityToken).UserID;
            }

            return(userID.HasValue ? GetUser(userID.Value) : GetUser(0));
        }
Beispiel #2
0
 public static void RemoveUser(string securityToken)
 {
     RemoveUser(SecurityToken.FromString(securityToken).UserID);
 }