This commit is contained in:
JustArchi
2020-09-21 01:00:37 +02:00
parent 6521ef0fde
commit 87db68baf8

View File

@@ -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();