|
|
@ -300,7 +300,7 @@ public final class httpd implements serverHandler {
|
|
|
|
String adminAccountBase64MD5 = sw.getConfig(ADMIN_ACCOUNT_B64MD5, "");
|
|
|
|
String adminAccountBase64MD5 = sw.getConfig(ADMIN_ACCOUNT_B64MD5, "");
|
|
|
|
if (adminAccountBase64MD5.length() == 0) return 2; // no passwrd stored
|
|
|
|
if (adminAccountBase64MD5.length() == 0) return 2; // no passwrd stored
|
|
|
|
if (adminAccountBase64MD5.equals(serverCodings.encodeMD5Hex(authorization))) return 4; // hard-authenticated, all ok
|
|
|
|
if (adminAccountBase64MD5.equals(serverCodings.encodeMD5Hex(authorization))) return 4; // hard-authenticated, all ok
|
|
|
|
return 0;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private boolean handleServerAuthentication(httpHeader header) throws IOException {
|
|
|
|
private boolean handleServerAuthentication(httpHeader header) throws IOException {
|
|
|
|