This commit is contained in:
JustArchi
2016-03-12 06:01:55 +01:00
parent 4710d9c1eb
commit 07049e71c0

View File

@@ -279,6 +279,10 @@ namespace ArchiSteamFarm {
}
internal static string GetUserInput(string botLogin, EUserInputType userInputType, string extraInformation = null) {
if (userInputType == EUserInputType.Unknown) {
return null;
}
string result;
lock (ConsoleLock) {
ConsoleIsBusy = true;
@@ -312,6 +316,9 @@ namespace ArchiSteamFarm {
case EUserInputType.TwoFactorAuthentication:
Console.Write("<" + botLogin + "> Please enter your 2 factor auth code from your authenticator app: ");
break;
default:
Console.Write("<" + botLogin + "> Please enter not documented yet value of \"" + userInputType + "\": ");
break;
}
result = Console.ReadLine();
Console.Clear(); // For security purposes