diff --git a/sonoff/webserver.ino b/sonoff/webserver.ino index 1af4f1ee4..bd79154e5 100644 --- a/sonoff/webserver.ino +++ b/sonoff/webserver.ino @@ -422,7 +422,7 @@ void SetHeader() #endif } -void ShowPage(String &page, bool auth = true) +void ShowPage(String &page, bool auth) { // if((HTTP_ADMIN == webserver_state) && (Settings.web_password[0] != 0) && !WebServer->authenticate(WEB_USERNAME, Settings.web_password)) { // return WebServer->requestAuthentication(); @@ -448,6 +448,11 @@ void ShowPage(String &page, bool auth = true) // WebServer->sendContent(""); } +void ShowPage(String &page) +{ + ShowPage(page, true); +} + //Authentication void HandleWifiLogin() {