Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Controller/ApiController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php
index d9fc6fa..cebd47f 100644
--- a/lib/Controller/ApiController.php
+++ b/lib/Controller/ApiController.php
@@ -146,12 +146,14 @@ class ApiController extends OCSController {
* @NoCSRFRequired
* @NoAdminRequired
* @PublicPage
+ * @BruteForceProtection(action=serverinfo)
*
* @return DataResponse
*/
public function info(): DataResponse {
if (!$this->checkAuthorized()) {
$response = new DataResponse(['message' => 'Unauthorized']);
+ $response->throttle();
$response->setStatus(Http::STATUS_UNAUTHORIZED);
return $response;
}