Exemplo n.º 1
0
        public void validateUser(string userID, out string userName, out bool isMissing, out string errorMsg)
        {
            isMissing = false;
            userName  = "";
            errorMsg  = "";
            string myUserID = userID.Trim();

            if (myUserID.Length == 0)
            {
                errorMsg = "Name not recognized!";
                return;
            }
            var pro = tools.GetUserName(myUserID);

            if (pro == userID)
            {
                errorMsg  = myUserID + " not recognized. No spaces/commas allowed in unrecognized names!";
                isMissing = true;
            }
            else
            {
                userName = pro;
            }
        }