1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-20 18:30:08 +00:00

Improve JWT key initialization and avoid saving public key (#4085)

This commit is contained in:
Daniel García 2024-03-17 15:11:20 +01:00 committed by GitHub
parent 2cbfe6fa5b
commit a1fbd6d729
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 87 deletions

View file

@ -103,7 +103,7 @@ impl Attachment {
let file_path = &self.get_file_path();
match crate::util::delete_file(file_path) {
match std::fs::remove_file(file_path) {
// Ignore "file not found" errors. This can happen when the
// upstream caller has already cleaned up the file as part of
// its own error handling.