|
|
@ -157,16 +157,14 @@ int Application::exec(const QStringList ¶ms) |
|
|
|
#ifdef DISABLE_GUI |
|
|
|
#ifdef DISABLE_GUI |
|
|
|
#ifndef DISABLE_WEBUI |
|
|
|
#ifndef DISABLE_WEBUI |
|
|
|
Preferences* const pref = Preferences::instance(); |
|
|
|
Preferences* const pref = Preferences::instance(); |
|
|
|
if (pref->isWebUiEnabled()) { |
|
|
|
// Display some information to the user
|
|
|
|
// Display some information to the user
|
|
|
|
std::cout << std::endl << "******** " << qPrintable(tr("Information")) << " ********" << std::endl; |
|
|
|
std::cout << std::endl << "******** " << qPrintable(tr("Information")) << " ********" << std::endl; |
|
|
|
std::cout << qPrintable(tr("To control qBittorrent, access the Web UI at http://localhost:%1").arg(QString::number(pref->getWebUiPort()))) << std::endl; |
|
|
|
std::cout << qPrintable(tr("To control qBittorrent, access the Web UI at http://localhost:%1").arg(QString::number(pref->getWebUiPort()))) << std::endl; |
|
|
|
std::cout << qPrintable(tr("The Web UI administrator user name is: %1").arg(pref->getWebUiUsername())) << std::endl; |
|
|
|
std::cout << qPrintable(tr("The Web UI administrator user name is: %1").arg(pref->getWebUiUsername())) << std::endl; |
|
|
|
qDebug() << "Password:" << pref->getWebUiPassword(); |
|
|
|
qDebug() << "Password:" << pref->getWebUiPassword(); |
|
|
|
if (pref->getWebUiPassword() == "f6fdffe48c908deb0f4c3bd36c032e72") { |
|
|
|
if (pref->getWebUiPassword() == "f6fdffe48c908deb0f4c3bd36c032e72") { |
|
|
|
std::cout << qPrintable(tr("The Web UI administrator password is still the default one: %1").arg("adminadmin")) << std::endl; |
|
|
|
std::cout << qPrintable(tr("The Web UI administrator password is still the default one: %1").arg("adminadmin")) << std::endl; |
|
|
|
std::cout << qPrintable(tr("This is a security risk, please consider changing your password from program preferences.")) << std::endl; |
|
|
|
std::cout << qPrintable(tr("This is a security risk, please consider changing your password from program preferences.")) << std::endl; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
#endif // DISABLE_WEBUI
|
|
|
|
#endif // DISABLE_WEBUI
|
|
|
|
#else |
|
|
|
#else |
|
|
|