0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-20 12:58:38 +02:00

Merge pull request #3704 from BlackDex/remove-debug-code

Remove debug code during attachment download
This commit is contained in:
Daniel García 2023-07-17 18:22:56 +02:00 committed by GitHub
commit 3dbfc484a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached<Option<NamedFile>> {
#[get("/attachments/<uuid>/<file_id>?<token>")]
async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option<NamedFile> {
let Ok(claims) = dbg!(decode_file_download(&token)) else { return None };
let Ok(claims) = decode_file_download(&token) else { return None };
if claims.sub != *uuid || claims.file_id != *file_id {
return None;
}