diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 9f6ac23c..c3e6682f 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -59,6 +59,12 @@ constexpr const size_t WEB_CONFIG_BUFFER_MAX = 4096; // ----------------------------------------------------------------------------- void _onReset(AsyncWebServerRequest *request) { + + webLog(request); + if (!webAuthenticate(request)) { + return request->requestAuthentication(getSetting("hostname").c_str()); + } + deferredReset(100, CUSTOM_RESET_HTTP); request->send(200); }