const char* http_UserName = "admin";
const char* http_pwd = "1234";
.
.
.


// Text Startseite
server.on("/", [](){
if (!server.authenticate(http_UserName, http_pwd)){
return server.requestAuthentication();
}
server.send(200, "text/html", html);
.
.
.