mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 11:15:49 +00:00
Removed API key from admin/summary
This commit is contained in:
parent
94cfcd66cd
commit
a94ef17883
@ -268,10 +268,7 @@ public class AdminResource {
|
||||
}
|
||||
)
|
||||
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
||||
@SecurityRequirement(name = "apiKey")
|
||||
public ActivitySummary summary(@HeaderParam(Security.API_KEY_HEADER) String apiKey) {
|
||||
Security.checkApiCallAllowed(request);
|
||||
|
||||
public ActivitySummary summary() {
|
||||
ActivitySummary summary = new ActivitySummary();
|
||||
|
||||
long now = NTP.getTime();
|
||||
|
@ -35,7 +35,7 @@ public class AdminApiTests extends ApiCommon {
|
||||
// Set localAuthBypassEnabled to true, since we don't need to test authentication here
|
||||
FieldUtils.writeField(Settings.getInstance(), "localAuthBypassEnabled", true, true);
|
||||
|
||||
assertNotNull(this.adminResource.summary("testApiKey"));
|
||||
assertNotNull(this.adminResource.summary());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user