mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
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:
1 parent
6552734faf
commit
0889da4316
1 file changed
+6
-3
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user