Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

second Loginbug...

allo7586fcb1a45c
diff --git a/htroot/IndexMonitor.java b/htroot/IndexMonitor.java
index 0ec7db773..db7b71784 100644
--- a/htroot/IndexMonitor.java
+++ b/htroot/IndexMonitor.java
@@ -79,14 +79,16 @@ public class IndexMonitor {
(post.containsKey("clearlist")) ||
(post.containsKey("deleteentry"))) {
String authorization = ((String) header.get("Authorization", "xxxxxx")).trim().substring(6);
- if (authorization.length() == 0) {
+ if (authorization.length() != 0) {
+ if (! switchboard.userDB.hasAdminRight(authorization)){
+ // force log-in (again, because wrong password was given)
+ prop.put("AUTHENTICATE", "admin log-in");
+ return prop;
+ }
+ }else{
// force log-in
prop.put("AUTHENTICATE", "admin log-in");
return prop;
- }else if (switchboard.userDB.hasAdminRight(authorization)) {
- // force log-in (again, because wrong password was given)
- prop.put("AUTHENTICATE", "admin log-in");
- return prop;
}
}