mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user