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); }