From 8cbda098dee1596c8b0c3e56696b394b028a3168 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 19 Jul 2016 05:01:52 +0200 Subject: [PATCH] Always reset one-time-only access token after logging in And not only if it succeeds --- ArchiSteamFarm/Bot.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 904c82dfc..69a77f132 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -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)) {