Skip to content

Commit 9e57f19

Browse files
committed
fix: clear key password after loading key
Signed-off-by: Robin Appelman <robin@icewind.nl> # Conflicts: # apps/files_external/lib/Lib/Auth/PublicKey/RSA.php # Conflicts: # apps/files_external/lib/Lib/Auth/PublicKey/RSA.php # apps/files_external/lib/Lib/Auth/PublicKey/RSAPrivateKey.php
1 parent a3cd05c commit 9e57f19

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user =
5353
throw new \RuntimeException('unable to load private key');
5454
}
5555
}
56+
$auth->setPassword('');
5657
$storage->setBackendOption('public_key_auth', $auth);
5758
}
5859

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user =
5050
throw new \RuntimeException('unable to load private key');
5151
}
5252
}
53+
54+
$auth->setPassword('');
5355
$storage->setBackendOption('public_key_auth', $auth);
5456
}
5557
}

0 commit comments

Comments
 (0)