Example #1
0
        public static int InsertNewUser(string login)
        {
            SetSecurityContext();

            CatOps.Users[] newUsers = CatbertManager.SearchNewUsersByLogin(login);
            if (newUsers.Length != 1)
            {
                return(-1);
            }

            return(catops.InsertNewUser(newUsers[0], HASH));
        }