diff --git a/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php index 381f0e9cf5b2c..3692518c8f37a 100644 --- a/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php +++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSA.php @@ -52,6 +52,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 8f58b71d5ac40..7538033d13676 100644 --- a/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php +++ b/apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php @@ -49,6 +49,8 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user = throw new \RuntimeException('unable to load private key'); } } + + $auth->setPassword(''); $storage->setBackendOption('public_key_auth', $auth); } }