Skip to content

Commit 0403c34

Browse files
authored
Merge pull request #62820 from nextcloud/backport/62805/stable30
[stable30] fix: handle sftp private key as password
2 parents 4f8173e + 207d4bc commit 0403c34

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
@@ -34,7 +34,8 @@ public function __construct(IL10N $l, IConfig $config) {
3434
(new DefinitionParameter('password', $l->t('Password')))
3535
->setFlag(DefinitionParameter::FLAG_OPTIONAL)
3636
->setType(DefinitionParameter::VALUE_PASSWORD),
37-
new DefinitionParameter('private_key', $l->t('Private key')),
37+
(new DefinitionParameter('private_key', $l->t('Private key')))
38+
->setType(DefinitionParameter::VALUE_PASSWORD),
3839
]);
3940
}
4041

0 commit comments

Comments
 (0)