Пример #1
0
 public bool Equals(IPassword other)
 {
     return(ClientId.Equals(other.ClientId) && Sha1Text == other.Sha1Text);
 }
Пример #2
0
 public Password(Guid guid, IPAddress ip, SecureString pass, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Пример #3
0
 public Password(Record record, AdminLevel level, SecureString pass)
 {
     this.clientid = record.ClientId;
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Пример #4
0
 public Password(Guid guid, IPAddress ip, string sha1text, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = sha1text;
 }
Пример #5
0
 public Password(IClient client, string text)
 {
     this.clientid = new ClientId(client);
     this.level    = client.Admin;
     this.sha1text = CreateSha1Text(text);
 }