From 1faf708b47ef17c4ee270f89848dc6e43c6c7ee4 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 10 Jan 2022 18:48:11 -0700 Subject: [PATCH] Fix steam 2FA --- .github/workflows/tests.yaml | 2 +- Wabbajack.Networking.Steam/Client.cs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1daf494a..5583b16b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,7 +7,7 @@ on: branches: [ main ] env: - VERSION: 3.0.0.0-beta4 + VERSION: 3.0.0.0-beta5 jobs: build: diff --git a/Wabbajack.Networking.Steam/Client.cs b/Wabbajack.Networking.Steam/Client.cs index 1c140c01..1612acbc 100644 --- a/Wabbajack.Networking.Steam/Client.cs +++ b/Wabbajack.Networking.Steam/Client.cs @@ -130,6 +130,8 @@ public class Client : IDisposable int fileSize; byte[] sentryHash; + _logger.LogInformation("Got Steam machine auth info"); + var token = await _token.Get(); var ms = new MemoryStream(); @@ -238,7 +240,6 @@ public class Client : IDisposable _haveSigFile = false; } - _isConnected = true; _steamUser.LogOn(new SteamUser.LogOnDetails @@ -250,6 +251,10 @@ public class Client : IDisposable SentryFileHash = sentryHash, RequestSteam2Ticket = true }); + + // Reset the codes so we don't use them again + _authCode = null; + _twoFactorCode = null; }); }