If no login method is defined default to api

This commit is contained in:
Sandy Carter 2015-08-17 19:20:57 -04:00
parent 5c9488fc13
commit a066e99bad

View File

@ -423,6 +423,8 @@ int main(int argc, char *argv[])
int iLoginResult = 0;
if (config.bLoginAPI || config.bLoginHTTP || initResult == 1)
{
if (!config.bLoginAPI && !config.bLoginHTTP)
downloader.config.bLoginAPI = true;
iLoginResult = downloader.login();
if (iLoginResult == 0)
return 1;