Fix steam 2FA

This commit is contained in:
Timothy Baldridge 2022-01-10 18:48:11 -07:00
parent 8a6d720e54
commit 1faf708b47
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@ on:
branches: [ main ] branches: [ main ]
env: env:
VERSION: 3.0.0.0-beta4 VERSION: 3.0.0.0-beta5
jobs: jobs:
build: build:

View File

@ -130,6 +130,8 @@ public class Client : IDisposable
int fileSize; int fileSize;
byte[] sentryHash; byte[] sentryHash;
_logger.LogInformation("Got Steam machine auth info");
var token = await _token.Get(); var token = await _token.Get();
var ms = new MemoryStream(); var ms = new MemoryStream();
@ -238,7 +240,6 @@ public class Client : IDisposable
_haveSigFile = false; _haveSigFile = false;
} }
_isConnected = true; _isConnected = true;
_steamUser.LogOn(new SteamUser.LogOnDetails _steamUser.LogOn(new SteamUser.LogOnDetails
@ -250,6 +251,10 @@ public class Client : IDisposable
SentryFileHash = sentryHash, SentryFileHash = sentryHash,
RequestSteam2Ticket = true RequestSteam2Ticket = true
}); });
// Reset the codes so we don't use them again
_authCode = null;
_twoFactorCode = null;
}); });
} }