mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
WebAPI: Add support for authenticating via API key
PR #23212. Closes #13201.
This commit is contained in:
@@ -957,7 +957,7 @@ int Application::exec()
|
||||
const auto *pref = Preferences::instance();
|
||||
|
||||
const QString tempPassword = pref->getWebUIPassword().isEmpty()
|
||||
? Utils::Password::generate() : QString();
|
||||
? Utils::Password::generate(9) : QString();
|
||||
m_webui = new WebUI(this, (!tempPassword.isEmpty() ? Utils::Password::PBKDF2::generate(tempPassword) : QByteArray()));
|
||||
connect(m_webui, &WebUI::error, this, [](const QString &message)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user