diff --git a/lib/ESPDASHPro b/lib/ESPDASHPro index 00021ce..ef380e6 160000 --- a/lib/ESPDASHPro +++ b/lib/ESPDASHPro @@ -1 +1 @@ -Subproject commit 00021cee721c24a68c7a8901d7c67561488e4450 +Subproject commit ef380e6b33f897696dc0b1417845b45252cc4156 diff --git a/lib/WebSerialPro b/lib/WebSerialPro index c2a801c..2ff4afe 160000 --- a/lib/WebSerialPro +++ b/lib/WebSerialPro @@ -1 +1 @@ -Subproject commit c2a801c711916d2b76bcb3664ac960bfe0d32834 +Subproject commit 2ff4afecda90a97f37edfdc9069a0fe1f8d5fa46 diff --git a/platformio.ini b/platformio.ini index 98b4a63..ddb8763 100644 --- a/platformio.ini +++ b/platformio.ini @@ -60,7 +60,7 @@ lib_deps = olikraus/U8g2 @ 2.35.27 robtillaart/CRC @ 1.0.3 mathieucarbou/AsyncTCP @ 3.2.5 - mathieucarbou/ESPAsyncWebServer @ 3.3.4 + mathieucarbou/ESPAsyncWebServer @ 3.3.5 mathieucarbou/MycilaConfig @ 3.1.0 mathieucarbou/MycilaDS18 @ 4.1.0 mathieucarbou/MycilaESPConnect @ 6.0.1 diff --git a/src/init/HTTP.cpp b/src/init/HTTP.cpp index bd350a0..d66ac4c 100644 --- a/src/init/HTTP.cpp +++ b/src/init/HTTP.cpp @@ -18,10 +18,11 @@ Mycila::Task initWebTask("Init Web", [](void* params) { loggingMiddleware.setOutput(Serial); - authMiddleware.setAuthType(AuthenticationMiddleware::AuthType::AUTH_DIGEST); + authMiddleware.setAuthType(AsyncAuthType::AUTH_DIGEST); authMiddleware.setRealm("YaSolR"); authMiddleware.setUsername(YASOLR_ADMIN_USERNAME); authMiddleware.setPassword(config.get(KEY_ADMIN_PASSWORD).c_str()); + authMiddleware.generateHash(); webServer.addMiddleware(&loggingMiddleware); webServer.addMiddleware(&authMiddleware);