public ChangePasswordDialog(UserLogin user) { this.user = user; InitializeComponent(); }
private static bool ValidatePassword(UserLogin user, string password) { return(user.Password.SequenceEqual(PasswordEncrypter.EncryptPassword(user.Username, password))); }