Skip to content

Commit

Permalink
* added login-parameter to be able to force authentication
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4613 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
f1ori committed Mar 29, 2008
1 parent be58135 commit 466d49e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions htroot/xml/bookmarks/tags/get.java
Expand Up @@ -62,6 +62,15 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
boolean isAdmin=switchboard.verifyAuthentication(header, true);
serverObjects prop = new serverObjects();

if(post != null){
if(!isAdmin){
// force authentication if desired
if(post.containsKey("login")){
prop.put("AUTHENTICATE","admin log-in");
}
}
}

Iterator<bookmarksDB.Tag> it = switchboard.bookmarksDB.getTagIterator(isAdmin);
int count=0;
bookmarksDB.Tag tag;
Expand Down

0 comments on commit 466d49e

Please sign in to comment.