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:
parent
2cbfe6fa5b
commit
a1fbd6d729
5 changed files with 48 additions and 87 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue