mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-27 04:33:04 +00:00
Made base64 work for both platforms
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user