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

@@ -655,6 +655,14 @@ public:
setValue("Preferences/WebUI/Enabled", enabled);
}
void setWebUiLocalAuthEnabled(bool enabled) {
setValue("Preferences/WebUI/LocalHostAuth", enabled);
}
bool isWebUiLocalAuthEnabled() const {
return value("Preferences/WebUI/LocalHostAuth", true).toBool();
}
quint16 getWebUiPort() const {
return value("Preferences/WebUI/Port", 8080).toInt();
}