fix auth for forced ping

pull/1/head
Michael Peter Christen 11 years ago
parent fbf4f77d80
commit 322854a5f8

@ -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;
}

Loading…
Cancel
Save