Web UI code clean up

This commit is contained in:
Christophe Dumez 2011-09-25 11:50:58 +03:00
parent 28d1671bb8
commit 1038376cdb
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;