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.
pull/49/head
Nicholas Hastings 8 years ago
parent 6552734faf
commit 0889da4316

@ -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 )
{

Loading…
Cancel
Save