aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Backends.php
diff options
context:
space:
mode:
authorStephan Orbaugh <62374139+sorbaugh@users.noreply.github.com>2025-05-06 14:47:42 +0200
committerGitHub <noreply@github.com>2025-05-06 14:47:42 +0200
commitcc23b7cd9a8aec432b4dd0615ace086efaa0d2f8 (patch)
tree9f15d1b232af97790ea8e11dfe2c6ba7dfff387d /apps/files_external/lib/Command/Backends.php
parentebca4bceaea174a29a75882c8ad7f7742c9c1544 (diff)
parentfe7b6039bcfbd7ae519639aa66f8bbfaa896c11e (diff)
downloadnextcloud-server-stable26.tar.gz
nextcloud-server-stable26.zip
Merge pull request #52649 from nextcloud/backport/52628/stable26stable26
[stable26] fix(files_external): Mark password fields for LoginCredentials and SessionCredentials as hidden and optional
Diffstat (limited to 'apps/files_external/lib/Command/Backends.php')
-rw-r--r--apps/files_external/lib/Command/Backends.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/Backends.php b/apps/files_external/lib/Command/Backends.php
index faf6209bd74..1c0852659dd 100644
--- a/apps/files_external/lib/Command/Backends.php
+++ b/apps/files_external/lib/Command/Backends.php
@@ -114,7 +114,7 @@ class Backends extends Base {
*/
private function formatConfiguration(array $parameters) {
$configuration = array_filter($parameters, function (DefinitionParameter $parameter) {
- return $parameter->getType() !== DefinitionParameter::VALUE_HIDDEN;
+ return $parameter->isFlagSet(DefinitionParameter::FLAG_HIDDEN);
});
return array_map(function (DefinitionParameter $parameter) {
return $parameter->getTypeName();