aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authoryemkareems <yemkareems@gmail.com>2024-09-26 15:05:03 +0530
committerFerdinand Thiessen <opensource@fthiessen.de>2024-10-16 16:49:06 +0200
commitd3f1b76ebb4e31a6e522263059ad151b75f7e397 (patch)
tree294d2aa992b49c40ba9b7e1a3228c06e9a31b28f /apps/files_external
parent5be832344eacb8328600d256c3090671c3f582d2 (diff)
downloadnextcloud-server-d3f1b76ebb4e31a6e522263059ad151b75f7e397.tar.gz
nextcloud-server-d3f1b76ebb4e31a6e522263059ad151b75f7e397.zip
fix: add PasswordConfirmationRequired to create user storages endpoint
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index ac806fe219c..2a1e59edde1 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\NotFoundException;
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 @@ class UserStoragesController extends StoragesController {
* @return DataResponse
*/
#[NoAdminRequired]
+ #[PasswordConfirmationRequired]
public function create(
$mountPoint,
$backend,