From 322854a5f8f0f7c8ffcfea8e3b251494a97d025a Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Mon, 27 Jan 2014 15:56:02 +0100 Subject: [PATCH] fix auth for forced ping --- htroot/Network.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htroot/Network.java b/htroot/Network.java index cf297f08b..fed15aab5 100644 --- a/htroot/Network.java +++ b/htroot/Network.java @@ -198,8 +198,9 @@ public class Network { if (post.containsKey("addPeer")) { // AUTHENTICATE - if (!requestHeader.containsKey(RequestHeader.AUTHORIZATION)) { - prop.authenticationRequired(); + final int authentication = sb.adminAuthenticated(requestHeader); + if (authentication < 2) { + prop.authenticationRequired(); // must authenticate return prop; }