Example #1
0
 public bool StartRegistration(string alias) {
     lock (Helpers.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 (Helpers.PrivilegeLock) {
                 this.Alias = alias;
                 Save();
             }
             return true;
         }
     }
 }
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;
         }
     }
 }