Skip to content

Commit c98c704

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: handle sftp private key as password
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent ca4ce5a commit c98c704

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function __construct(
3131
(new DefinitionParameter('password', $l->t('Password')))
3232
->setFlag(DefinitionParameter::FLAG_OPTIONAL)
3333
->setType(DefinitionParameter::VALUE_PASSWORD),
34-
new DefinitionParameter('private_key', $l->t('Private key')),
34+
(new DefinitionParameter('private_key', $l->t('Private key')))
35+
->setType(DefinitionParameter::VALUE_PASSWORD),
3536
]);
3637
}
3738

0 commit comments

Comments
 (0)