Example #1
0
 public NodeInfo()
 {
     Connection = null;
     ConnectionType = ConnectionType.None;
     Door = new DoorInfo("");
     Node = -1;
     SecondsThisSession = 300; // Default to 5 minutes during authentication, will be set accordingly at successful logon
     TerminalType = TerminalType.Ascii;
     TimeOn = DateTime.Now;
     User = new UserInfo("");
     UserLoggedOn = false;
 }
Example #2
0
 public bool StartRegistration(string alias)
 {
     lock (Globals.RegistrationLock)
     {
         // Check for existence of alias
         UserInfo U = new UserInfo(alias);
         if (U.Load())
         {
             // Alias exists, can't start registration
             return false;
         }
         else
         {
             // Alias is unique, save a file to start the registration process
             base.FileName = U.FileName;
             lock (Globals.PrivilegeLock)
             {
                 this.Alias = alias;
                 Save();
             }
             return true;
         }
     }
 }