Always reset one-time-only access token after logging in

And not only if it succeeds
This commit is contained in:
JustArchi
2016-07-19 05:01:52 +02:00
parent bfd37b4c06
commit 8cbda098de

View File

@@ -1761,6 +1761,9 @@ namespace ArchiSteamFarm {
return;
}
// Reset one-time-only access tokens
AuthCode = TwoFactorCode = null;
switch (callback.Result) {
case EResult.AccountLogonDenied:
AuthCode = Program.GetUserInput(Program.EUserInputType.SteamGuard, BotName);
@@ -1801,9 +1804,6 @@ namespace ArchiSteamFarm {
}
}
// Reset one-time-only access tokens
AuthCode = TwoFactorCode = null;
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {
BotConfig.SteamParentalPIN = Program.GetUserInput(Program.EUserInputType.SteamParentalPIN, BotName);
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {