Skip to content

Commit

Permalink
Update Login.cs (FeroxRev#30)
Browse files Browse the repository at this point in the history
We dont need to pass username and password because we already have it on user settings (ISettings)
  • Loading branch information
Corlobin authored and FeroxRev committed Jul 26, 2016
1 parent de054ee commit a006bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PokemonGo.RocketAPI/Rpc/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public async Task DoGoogleLogin()
await SetServer();
}

public async Task DoPtcLogin(string username, string password)
public async Task DoPtcLogin()
{
_client.AuthToken = await PtcLogin.GetAccessToken(username, password);
_client.AuthToken = await PtcLogin.GetAccessToken(_client.Settings.PtcUsername, _client.Settings.PtcPassword);
_client.AuthType = AuthType.Ptc;

await SetServer();
Expand Down

0 comments on commit a006bd3

Please sign in to comment.