From 3356b46b8a565feb9d733109ad1e74994b00c538 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Thu, 26 Sep 2024 15:05:03 +0530 Subject: [PATCH] fix: add PasswordConfirmationRequired to create user storages endpoint --- apps/files_external/lib/Controller/UserStoragesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index ac806fe219c8c..2a1e59edde1c2 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -13,6 +13,7 @@ use OCA\Files_External\Service\UserStoragesService; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoAdminRequired; +use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; use OCP\AppFramework\Http\DataResponse; use OCP\IConfig; use OCP\IGroupManager; @@ -99,6 +100,7 @@ public function show($id, $testOnly = true) { * @return DataResponse */ #[NoAdminRequired] + #[PasswordConfirmationRequired] public function create( $mountPoint, $backend,