LCDOTA HTML

This commit is contained in:
Siwat Sirichai 2024-01-15 14:20:49 +07:00
parent 6cb4818195
commit 05236797c2
9 changed files with 563 additions and 29 deletions

View file

@ -513,4 +513,20 @@ void ESPMegaWebServer::saveConfigJSONHandler(AsyncWebServerRequest *request, Jso
*/
AsyncWebServer *ESPMegaWebServer::getServer() {
return this->server;
}
/**
* @brief Request authentication from the client
*
* This method requests authentication from the client.
*
* @param request The AsyncWebServerRequest object
*/
bool ESPMegaWebServer::checkAuthentication(AsyncWebServerRequest *request) {
if (!request->authenticate(this->webUsername, this->webPassword))
{
request->requestAuthentication();
return false;
}
return true;
}