From a2f70c318ff1efa667be7166d347f95530ddd5b1 Mon Sep 17 00:00:00 2001 From: trotFunky Date: Tue, 23 Jul 2024 21:51:56 +0100 Subject: [PATCH] auth: Fix auth token getting leaked to console Remove a forgotten debug print that leaked auth tokens to the console to check how they got saved and restored to the database. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/auth.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 14afd09..d10f706 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -578,7 +578,7 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "fabula_votes_server" -version = "1.1.0" +version = "1.1.1" dependencies = [ "argon2", "blake2", diff --git a/Cargo.toml b/Cargo.toml index 57936af..e316357 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "fabula_votes_server" license = "MPL-2.0" readme = "README.md" authors = ["trotFunky"] -version = "1.1.0" +version = "1.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/auth.rs b/src/auth.rs index 1902291..ac909f0 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -56,7 +56,7 @@ pub async fn get_user(week: u8, db: &mut Connection, cookies: &CookieJar<'_> Vec::::new() } }; - tokens.iter().find(|auth_token| {println!("Token : {:?}\nCookie : {:?}", auth_token.token, token_str); auth_token.token.eq(&token_str)}).is_some() + tokens.iter().find(|auth_token| {auth_token.token.eq(&token_str)}).is_some() } else { id_str = String::new(); false