Bring back HackedLogOn()

It's still needed...
This commit is contained in:
JustArchi
2016-07-12 03:56:35 +02:00
parent 658d6129a7
commit 51abdfb899
2 changed files with 47 additions and 2 deletions

View File

@@ -1521,7 +1521,7 @@ namespace ArchiSteamFarm {
TwoFactorCode = await BotDatabase.MobileAuthenticator.GenerateToken().ConfigureAwait(false);
}
SteamUser.LogOn(new SteamUser.LogOnDetails {
SteamUser.LogOnDetails logOnDetails = new SteamUser.LogOnDetails {
Username = BotConfig.SteamLogin,
Password = BotConfig.SteamPassword,
AuthCode = AuthCode,
@@ -1531,7 +1531,14 @@ namespace ArchiSteamFarm {
TwoFactorCode = TwoFactorCode,
SentryFileHash = sentryHash,
ShouldRememberPassword = true
});
};
try {
SteamUser.LogOn(logOnDetails);
} catch {
// TODO: Remove me once https://github.com/SteamRE/SteamKit/issues/305 is fixed
ArchiHandler.LogOnWithoutMachineID(logOnDetails);
}
}
private async void OnDisconnected(SteamClient.DisconnectedCallback callback) {