Skip to content

Commit

Permalink
Fixed pairing, as was discussed here: hdurdle#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakritzator committed Nov 18, 2016
1 parent 094b034 commit 1ffd667
Show file tree
Hide file tree
Showing 7 changed files with 572 additions and 705 deletions.
2 changes: 1 addition & 1 deletion HarmonyConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static async Task MainAsync(string[] args)
}
else
{
client = await HarmonyClient.Create(options.IpAddress, options.Username, options.Password);
client = await HarmonyClient.Create(options.IpAddress);
File.WriteAllText("SessionToken", client.Token);
}

Expand Down
207 changes: 84 additions & 123 deletions HarmonyDemo/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions HarmonyDemo/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,8 @@ private async Task ConnectAsync()
}
else
{
if (string.IsNullOrEmpty(textBoxPassword.Text))
{
toolStripStatusLabelConnection.Text = "Credentials missing!";
return;
}

toolStripStatusLabelConnection.Text += "authenticating with Logitech servers...";
Program.Client = await HarmonyClient.Create(textBoxHarmonyHubAddress.Text, textBoxUserName.Text, textBoxPassword.Text);
Program.Client = await HarmonyClient.Create(textBoxHarmonyHubAddress.Text);
File.WriteAllText("SessionToken", Program.Client.Token);
}

Expand Down
79 changes: 0 additions & 79 deletions HarmonyHub/HarmonyAuthentication.cs

This file was deleted.

Loading

0 comments on commit 1ffd667

Please sign in to comment.