Browse Source

Web UI code clean up

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
1038376cdb
  1. 6
      src/webui/httpserver.cpp
  2. 2
      src/webui/httpserver.h

6
src/webui/httpserver.cpp

@ -96,7 +96,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent), @@ -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 { @@ -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;
}

2
src/webui/httpserver.h

@ -91,7 +91,7 @@ private: @@ -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…
Cancel
Save