Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Mar 12, 2016
1 parent 4710d9c commit 07049e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ArchiSteamFarm/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ internal static async Task LimitSteamRequestsAsync() {
}

internal static string GetUserInput(string botLogin, EUserInputType userInputType, string extraInformation = null) {
if (userInputType == EUserInputType.Unknown) {
return null;
}

string result;
lock (ConsoleLock) {
ConsoleIsBusy = true;
Expand Down Expand Up @@ -312,6 +316,9 @@ internal static string GetUserInput(string botLogin, EUserInputType userInputTyp
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
Expand Down

0 comments on commit 07049e7

Please sign in to comment.