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.
This commit is contained in:
parent
67ce54e992
commit
a2f70c318f
3 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ pub async fn get_user(week: u8, db: &mut Connection<Db>, cookies: &CookieJar<'_>
|
|||
Vec::<AuthTokens>::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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue