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)) {