Fixed build error on ESP32

This commit is contained in:
Gunnar Skjold 2021-09-23 18:20:54 +02:00
parent 0aeb5555e7
commit 46df07fe40

View File

@ -134,7 +134,11 @@ bool AmsWebServer::checkSecurity(byte level) {
String providedPwd = server.header("Authorization");
providedPwd.replace("Basic ", "");
#if defined(ESP8266)
String expectedBase64 = base64::encode(expectedAuth, false);
#elif defined(ESP32)
String expectedBase64 = base64::encode(expectedAuth);
#endif
debugger->printf("Expected auth: %s\n", expectedBase64.c_str());
debugger->printf("Provided auth: %s\n", providedPwd.c_str());