From 6e7c6ce69ec9a221a20e7bb26eac56a9efb9f9ac Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 28 May 2026 18:58:19 +0200 Subject: [PATCH] fix: actually register listener for updating stored external storage credentials Signed-off-by: Robin Appelman --- apps/files_external/lib/AppInfo/Application.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/files_external/lib/AppInfo/Application.php b/apps/files_external/lib/AppInfo/Application.php index cd2606f19ab23..40e65014e6c49 100644 --- a/apps/files_external/lib/AppInfo/Application.php +++ b/apps/files_external/lib/AppInfo/Application.php @@ -44,6 +44,7 @@ use OCA\Files_External\Lib\Config\IBackendProvider; use OCA\Files_External\Listener\GroupDeletedListener; use OCA\Files_External\Listener\LoadAdditionalListener; +use OCA\Files_External\Listener\StorePasswordListener; use OCA\Files_External\Listener\UserDeletedListener; use OCA\Files_External\Service\BackendService; use OCA\Files_External\Service\MountCacheService; @@ -56,9 +57,11 @@ use OCP\Group\Events\GroupDeletedEvent; use OCP\Group\Events\UserAddedEvent; use OCP\Group\Events\UserRemovedEvent; +use OCP\User\Events\PasswordUpdatedEvent; use OCP\User\Events\PostLoginEvent; use OCP\User\Events\UserCreatedEvent; use OCP\User\Events\UserDeletedEvent; +use OCP\User\Events\UserLoggedInEvent; use Psr\Container\ContainerExceptionInterface; /** @@ -89,6 +92,9 @@ public function register(IRegistrationContext $context): void { $context->registerEventListener(UserRemovedEvent::class, MountCacheService::class); $context->registerEventListener(PostLoginEvent::class, MountCacheService::class); + $context->registerEventListener(UserLoggedInEvent::class, StorePasswordListener::class); + $context->registerEventListener(PasswordUpdatedEvent::class, StorePasswordListener::class); + $context->registerConfigLexicon(ConfigLexicon::class); }