From e140c73d1e04302ee0b7d46e0652b75bb3b5a024 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 28 Nov 2024 12:18:15 +0100 Subject: [PATCH] fixup! feat: Use inline password confirmation in external storage settings Signed-off-by: Louis Chemineau --- apps/files_external/lib/Controller/UserStoragesController.php | 2 +- lib/private/AppFramework/DependencyInjection/DIContainer.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index 36acc2429393d..be39fa99924a6 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -232,7 +232,7 @@ public function update( * {@inheritdoc} */ #[NoAdminRequired] - #[PasswordConfirmationRequired] + #[PasswordConfirmationRequired(strict: true)] public function destroy($id) { return parent::destroy($id); } diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index b301f38563f17..62347d6651a61 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -279,6 +279,8 @@ public function __construct(string $appName, array $urlParams = [], ?ServerConta $c->get(IUserSession::class), $c->get(ITimeFactory::class), $c->get(\OC\Authentication\Token\IProvider::class), + $c->get(IRequest::class), + $c->get(UserManager::class), ) ); $dispatcher->registerMiddleware(