From edfb2bb8523afeaad2422fba2cc975f65130cf80 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 May 2026 17:22:47 +0200 Subject: [PATCH] fix: handle sftp private key as password Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php b/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php index 30ff5dd2a4c21..4e194d320948e 100644 --- a/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php +++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php @@ -50,7 +50,8 @@ public function __construct(IL10N $l, IConfig $config) { (new DefinitionParameter('password', $l->t('Password'))) ->setFlag(DefinitionParameter::FLAG_OPTIONAL) ->setType(DefinitionParameter::VALUE_PASSWORD), - new DefinitionParameter('private_key', $l->t('Private key')), + (new DefinitionParameter('private_key', $l->t('Private key'))) + ->setType(DefinitionParameter::VALUE_PASSWORD), ]); }