mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Web UI code clean up
This commit is contained in:
parent
28d1671bb8
commit
1038376cdb
2 changed files with 4 additions and 4 deletions
|
@ -96,7 +96,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent),
|
|||
|
||||
m_username = pref.getWebUiUsername().toLocal8Bit();
|
||||
m_passwordSha1 = pref.getWebUiPassword().toLocal8Bit();
|
||||
m_localAuth = pref.isWebUiLocalAuthEnabled();
|
||||
m_localAuthEnabled = pref.isWebUiLocalAuthEnabled();
|
||||
|
||||
// HTTPS-related
|
||||
#ifndef QT_NO_OPENSSL
|
||||
|
@ -331,9 +331,9 @@ EventManager* HttpServer::eventManager() const {
|
|||
}
|
||||
|
||||
void HttpServer::setlocalAuthEnabled(bool enabled) {
|
||||
m_localAuth = enabled;
|
||||
m_localAuthEnabled = enabled;
|
||||
}
|
||||
|
||||
bool HttpServer::isLocalAuthEnabled() const {
|
||||
return m_localAuth;
|
||||
return m_localAuthEnabled;
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ private:
|
|||
EventManager *m_eventManager;
|
||||
QTimer m_timer;
|
||||
QHash<QString, int> m_clientFailedAttempts;
|
||||
bool m_localAuth;
|
||||
bool m_localAuthEnabled;
|
||||
#ifndef QT_NO_OPENSSL
|
||||
bool m_https;
|
||||
QSslCertificate m_certificate;
|
||||
|
|
Loading…
Reference in a new issue