inform the user if login was successful

This commit is contained in:
Sude 2013-03-16 21:16:58 +02:00
parent 8e1c6f81e4
commit 53f82e5c96

View File

@ -102,6 +102,10 @@ int Downloader::login()
std::cout << "HTTP: Login failed" << std::endl; std::cout << "HTTP: Login failed" << std::endl;
return 1; return 1;
} }
else
{
std::cout << "HTTP: Login successful" << std::endl;
}
// Login to API // Login to API
if (!gogAPI->login(email, password)) if (!gogAPI->login(email, password))
{ {
@ -110,6 +114,7 @@ int Downloader::login()
} }
else else
{ {
std::cout << "API: Login successful" << std::endl;
// Save token and secret to config file // Save token and secret to config file
std::ofstream ofs(config.sConfigFilePath.c_str()); std::ofstream ofs(config.sConfigFilePath.c_str());
if (ofs) if (ofs)