FEATURE: Added option to bypass Web UI authentication for localhost

This commit is contained in:
Christophe Dumez
2011-02-27 09:34:42 +00:00
parent 79cdad47f1
commit 8b9971003d
41 changed files with 2772 additions and 2605 deletions

View File

@@ -52,6 +52,8 @@ public:
~HttpServer();
void setAuthorization(QString username, QString password_ha1);
bool isAuthorized(QByteArray auth, QString method) const;
void setlocalAuthEnabled(bool enabled);
bool isLocalAuthEnabled() const;
EventManager *eventManager() const;
QString generateNonce() const;
int NbFailedAttemptsForIp(QString ip) const;
@@ -69,6 +71,7 @@ private:
EventManager *manager;
QTimer *timer;
QHash<QString, int> client_failed_attempts;
bool m_localAuth;
};
#endif