fix for bad message about empty pw if localhost is allowed to access without pw

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4827 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent 6aa9bf43f9
commit 2ba6f4e92d

@ -131,7 +131,7 @@ public class Status {
} }
// password protection // password protection
if (sb.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "").length() == 0) { if ((sb.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "").length() == 0) && (!sb.getConfigBool("adminAccountForLocalhost", false))) {
prop.put("protection", "0"); // not protected prop.put("protection", "0"); // not protected
prop.put("urgentSetPassword", "1"); prop.put("urgentSetPassword", "1");
} else { } else {

Loading…
Cancel
Save