Don't error out if a user supplies a password without -remember-me but a matching login key was found

This commit is contained in:
Ryan Kistner committed 2017-07-27 22:55:32 -06:00
1 parent de775d5c4b
commit 8daaf0daa2
1 file changed
+1 -1
+1 -1
View File
@@ -98,7 +98,7 @@ namespace DepotDownloader
ContentDownloader.Config.MaxServers = Math.Max( ContentDownloader.Config.MaxServers, ContentDownloader.Config.MaxDownloads );
if ( username != null && password == null && !ConfigStore.TheConfig.LoginKeys.ContainsKey( username ) )
if ( username != null && password == null && ( !ContentDownloader.Config.RememberPassword || !ConfigStore.TheConfig.LoginKeys.ContainsKey( username ) ) )
{
Console.Write( "Enter account password for \"{0}\": ", username );
password = Util.ReadPassword();