This commit is contained in:
Sude 2015-10-03 18:52:36 +03:00
commit 8736e3dec8

View File

@ -121,6 +121,10 @@ int Downloader::login()
{
char *pwd;
std::string email;
if (!isatty(STDIN_FILENO)) {
std::cout << "Unable to read email and password" << std::endl;
return 0;
}
std::cout << "Email: ";
std::getline(std::cin,email);
pwd = getpass("Password: ");