Skip to content

Commit 6dd3478

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 1c94e3d commit 6dd3478

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
@@ -54,6 +54,7 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user =
5454
throw new \RuntimeException('unable to load private key');
5555
}
5656
}
57+
$auth->setPassword('');
5758
$storage->setBackendOption('public_key_auth', $auth);
5859
}
5960

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

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

0 commit comments

Comments
 (0)