Fix ASF failing on non-uppercase 2FA chars

This commit is contained in:
JustArchi
2020-08-22 00:58:06 +02:00
parent c7ffa5a572
commit d7e7d85a40

View File

@@ -541,7 +541,7 @@ namespace ArchiSteamFarm {
break;
case ASF.EUserInputType.TwoFactorAuthentication:
if (((inputValue.Length != MobileAuthenticator.CodeDigits) && (inputValue.Length != MobileAuthenticator.BackupCodeDigits)) || inputValue.Any(character => !MobileAuthenticator.CodeCharacters.Contains(character))) {
if (((inputValue.Length != MobileAuthenticator.CodeDigits) && (inputValue.Length != MobileAuthenticator.BackupCodeDigits)) || inputValue.Any(character => !MobileAuthenticator.CodeCharacters.Contains(char.ToUpperInvariant(character)))) {
return false;
}