Don't allow empty password to be entered when using non-anon account.

Fixes getting wall of exception text when accidentally entering or pasting
in an empty string.
This commit is contained in:
Nicholas Hastings committed 2018-03-31 09:32:42 -04:00
1 parent 6552734faf
commit 0889da4316
1 file changed
+6 -3
+6 -3
View File
@@ -111,9 +111,12 @@ namespace DepotDownloader
if ( username != null && password == null && ( !ContentDownloader.Config.RememberPassword || !ConfigStore.TheConfig.LoginKeys.ContainsKey( username ) ) )
{
Console.Write( "Enter account password for \"{0}\": ", username );
password = Util.ReadPassword();
Console.WriteLine();
do
{
Console.Write("Enter account password for \"{0}\": ", username);
password = Util.ReadPassword();
Console.WriteLine();
} while ( String.Empty == password );
}
else if ( username == null )
{