diff --git a/Version.h b/Version.h
index 7fbaec4..77741a1 100644
--- a/Version.h
+++ b/Version.h
@@ -1,3 +1,3 @@
#pragma once
-#define nuki_hub_version "3.2"
\ No newline at end of file
+#define nuki_hub_version "3.3"
\ No newline at end of file
diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp
index 9cbb08e..f91ba9c 100644
--- a/WebCfgServer.cpp
+++ b/WebCfgServer.cpp
@@ -125,11 +125,12 @@ void WebCfgServer::initialize()
return _server.requestAuthentication();
}
- String response = "";
- buildConfirmHtml(response, "Initiating Over-the-air Update. This will take a moment, please be patient.", 35);
-
- _server.send(200, "text/html", response);
+ _server.send(200, "text/html", "");
}, [&]() {
+ if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
+ return _server.requestAuthentication();
+ }
+
handleOtaUpload();
});
@@ -371,7 +372,7 @@ void WebCfgServer::buildHtml(String& response)
response.concat("");
response.concat("");
- response.concat("