LCDOTA HTML
This commit is contained in:
parent
6cb4818195
commit
05236797c2
9 changed files with 563 additions and 29 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue