Beispiel #1
0
 public void SetUserPassword(string user, string password)
 {
     UserDataItem item = GetUserItem(user);
     if (item != null)
     {
         item.Password = password;
     }
 }
Beispiel #2
0
 public void SetUserStartingDirectory(string user, string directory)
 {
     UserDataItem item = GetUserItem(user);
     if (item != null)
     {
         item.StartingDirectory = directory;
     }
 }
Beispiel #3
0
        public string GetUserStartingDirectory(string user)
        {
            UserDataItem item = GetUserItem(user);
            if (item != null)
            {
                return item.StartingDirectory;
            }

            return "C:\\";
        }
Beispiel #4
0
        public string GetUserPassword(string user)
        {
            UserDataItem item = GetUserItem(user);
            if (item != null)
            {
                return item.Password;
            }

            return string.Empty;
        }
Beispiel #5
0
        public string GetUserStartingDirectory(string user)
        {
            UserDataItem item = this.GetUserItem(user);

            if (item != null)
            {
                return(item.StartingDirectory);
            }

            return("C:\\");
        }
Beispiel #6
0
        public string GetUserPassword(string user)
        {
            UserDataItem item = this.GetUserItem(user);

            if (item != null)
            {
                return(item.Password);
            }

            return(string.Empty);
        }
Beispiel #7
0
        public bool HasUser(string user)
        {
            UserDataItem item = GetUserItem(user);

            return(item != null);
        }