diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index fe7f6cdfd..34a9998ef 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -521,8 +521,12 @@ namespace ArchiSteamFarm { break; case ASF.EUserInputType.TwoFactorAuthentication: - if ((inputValue.Length != MobileAuthenticator.CodeDigits) && (inputValue.Length != MobileAuthenticator.BackupCodeDigits)) { - return false; + switch (inputValue.Length) { + case MobileAuthenticator.BackupCodeDigits: + case MobileAuthenticator.CodeDigits: + break; + default: + return false; } inputValue = inputValue.ToUpperInvariant();