From 37b4cb9d066254d8f20c62986812f4934495a3f1 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 2 Jan 2011 17:35:28 +0000 Subject: [PATCH] Display default password on stdout when using nox --- src/headlessloader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/headlessloader.h b/src/headlessloader.h index 21ccbdf6f..f66a186ad 100644 --- a/src/headlessloader.h +++ b/src/headlessloader.h @@ -54,7 +54,8 @@ public: 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("The Web UI administrator user name is: %1").arg(pref.getWebUiUsername())) << std::endl; - if(pref.getWebUiPassword() == "f6fdffe48c908deb0f4c3bd36c032e72") { + qDebug() << "Password:" << pref.getWebUiPassword(); + if(pref.getWebUiPassword() == "32fe0bd2bb001911bb8bcfe23fc92b63") { 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; }