Merge pull request #1806 from wabbajack-tools/fix-steam-2fa

Fix steam 2FA
This commit is contained in:
Timothy Baldridge 2022-01-10 18:48:53 -07:00 committed by GitHub
commit 55aa6233a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -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;
});
}