diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 71a1af3..4846d08 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -60,8 +60,30 @@ void help() using namespace std; using namespace xmrstak; - cout<<"Usage: "<> userName; } auto& passwd = params::inst().poolPasswd; - if(passwd.empty()) + if(passwd.empty() && (!userSetPasswd)) { // clear everything from stdin to allow an empty password std::cin.clear(); std::cin.ignore(INT_MAX,'\n');