Skip to content

Commit a006bd3

Browse files
CorlobinFeroxRev
authored andcommitted
Update Login.cs (#30)
We dont need to pass username and password because we already have it on user settings (ISettings)
1 parent de054ee commit a006bd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PokemonGo.RocketAPI/Rpc/Login.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public async Task DoGoogleLogin()
4646
await SetServer();
4747
}
4848

49-
public async Task DoPtcLogin(string username, string password)
49+
public async Task DoPtcLogin()
5050
{
51-
_client.AuthToken = await PtcLogin.GetAccessToken(username, password);
51+
_client.AuthToken = await PtcLogin.GetAccessToken(_client.Settings.PtcUsername, _client.Settings.PtcPassword);
5252
_client.AuthType = AuthType.Ptc;
5353

5454
await SetServer();

0 commit comments

Comments
 (0)