From 87db68baf8a560203bb3447cf8c469c88203ddb5 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 21 Sep 2020 01:00:37 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Bot.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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();