aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/OCJSController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/OCJSController.php')
-rw-r--r--core/Controller/OCJSController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Controller/OCJSController.php b/core/Controller/OCJSController.php
index 8a6193d2e53..3a0922c9344 100644
--- a/core/Controller/OCJSController.php
+++ b/core/Controller/OCJSController.php
@@ -14,7 +14,9 @@ use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
+use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
+use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\Defaults;
use OCP\IConfig;
@@ -67,10 +69,10 @@ class OCJSController extends Controller {
}
/**
- * @NoCSRFRequired
* @NoTwoFactorRequired
- * @PublicPage
*/
+ #[PublicPage]
+ #[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/core/js/oc.js')]
public function getConfig(): DataDisplayResponse {
$data = $this->helper->getConfig();