Skip to content

Commit 55b9808

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
1 parent e68d903 commit 55b9808

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
@@ -55,6 +55,7 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user =
5555
$auth = RSACrypt::loadPrivateKey($storage->getBackendOption('private_key'));
5656
}
5757

58+
$auth = $auth->withPassword('');
5859
$storage->setBackendOption('public_key_auth', $auth);
5960
}
6061

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user =
5656
'',
5757
);
5858
}
59+
60+
$auth = $auth->withPassword('');
5961
$storage->setBackendOption('public_key_auth', $auth);
6062
}
6163
}

0 commit comments

Comments
 (0)