|
|
@ -198,8 +198,9 @@ public class Network {
|
|
|
|
if (post.containsKey("addPeer")) {
|
|
|
|
if (post.containsKey("addPeer")) {
|
|
|
|
|
|
|
|
|
|
|
|
// AUTHENTICATE
|
|
|
|
// AUTHENTICATE
|
|
|
|
if (!requestHeader.containsKey(RequestHeader.AUTHORIZATION)) {
|
|
|
|
final int authentication = sb.adminAuthenticated(requestHeader);
|
|
|
|
prop.authenticationRequired();
|
|
|
|
if (authentication < 2) {
|
|
|
|
|
|
|
|
prop.authenticationRequired(); // must authenticate
|
|
|
|
return prop;
|
|
|
|
return prop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|