mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Add support for the ESP8266 webserver
This commit is contained in:
parent
437eb68d00
commit
9fbd3e6c38
@ -255,7 +255,12 @@ String get_mac_address() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef ESP32
|
||||
int8_t check_auth(WebServer *server) {
|
||||
#endif
|
||||
#ifdef ESP8266
|
||||
int8_t check_auth(ESP8266WebServer *server) {
|
||||
#endif
|
||||
// If we have a user and a password we check digest auth
|
||||
bool use_auth = (strlen(WWW_USER) && strlen(WWW_PASSWORD));
|
||||
if (!use_auth) {
|
||||
|
Loading…
Reference in New Issue
Block a user