1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-20 18:43:57 +00:00

Rework file ID generation

This commit is contained in:
Jeremy Lin 2021-05-25 23:15:24 -07:00
parent 5fef7983f4
commit c2ef331df9
3 changed files with 15 additions and 5 deletions

View file

@ -173,7 +173,7 @@ fn post_send_file(data: Data, content_type: &ContentType, headers: Headers, conn
// Create the Send
let mut send = create_send(data.data, headers.user.uuid.clone())?;
let file_id = crate::crypto::generate_file_id();
let file_id = crate::crypto::generate_send_id();
if send.atype != SendType::File as i32 {
err!("Send content is not a file");