From 8360c571894bd1b26b8edf739faf99193a23b236 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 31 Oct 2024 09:41:09 -0100 Subject: [PATCH] fix(files-external): set password as sensitive Signed-off-by: Maxence Lange --- apps/files_external/lib/Lib/Backend/OwnCloud.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_external/lib/Lib/Backend/OwnCloud.php b/apps/files_external/lib/Lib/Backend/OwnCloud.php index c0bd689186434..c3e16dd5404c5 100644 --- a/apps/files_external/lib/Lib/Backend/OwnCloud.php +++ b/apps/files_external/lib/Lib/Backend/OwnCloud.php @@ -25,6 +25,9 @@ public function __construct(IL10N $l, Password $legacyAuth) { (new DefinitionParameter('secure', $l->t('Secure https://'))) ->setType(DefinitionParameter::VALUE_BOOLEAN) ->setDefaultValue(true), + (new DefinitionParameter('password', $l->t('Password'))) + ->setFlag(DefinitionParameter::FLAG_OPTIONAL) + ->setType(DefinitionParameter::VALUE_PASSWORD), ]) ->addAuthScheme(AuthMechanism::SCHEME_PASSWORD) ->setLegacyAuthMechanism($legacyAuth)