Made base64 work for both platforms

This commit is contained in:
Gunnar Skjold 2020-07-25 08:48:51 +02:00
parent 00d5d215cd
commit b4f18de030

View File

@ -98,7 +98,7 @@ bool AmsWebServer::checkSecurity(byte level) {
String providedPwd = server.header("Authorization");
providedPwd.replace("Basic ", "");
String expectedBase64 = base64::encode(expectedAuth, expectedAuth.length());
String expectedBase64 = base64::encode(expectedAuth);
access = providedPwd.equals(expectedBase64);
}