diff --git a/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php index 3235759713c9b..4dd5da345a277 100644 --- a/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php +++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php @@ -53,6 +53,7 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user = throw new \RuntimeException('unable to load private key'); } } + $auth->setPassword(''); $storage->setBackendOption('public_key_auth', $auth); } diff --git a/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php b/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php index 5fc56697d12fd..bd92f86510451 100644 --- a/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php +++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php @@ -50,6 +50,8 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user = throw new \RuntimeException('unable to load private key'); } } + + $auth->setPassword(''); $storage->setBackendOption('public_key_auth', $auth); } }