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