Exemplo n.º 1
0
 public bool AddUser(String userName, String password)
 {
     if (this.usersCredentials.ContainsKey(userName))
     {
         return(false);
     }
     usersCredentials[userName] = Sec.hash(password);
     return(true);
 }
Exemplo n.º 2
0
 public void ChangePassword(String username, String password)
 {
     this.usersCredentials[username] = Sec.hash(password);
 }