fix: don't print user passwords

This commit is contained in:
Maarten van Heusden
2024-09-16 20:21:05 +02:00
parent e7f4d6c0b3
commit fe46619a57
3 changed files with 6 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use std::io;
use std::path::{Path};
use std::path::Path;
use std::sync::OnceLock;
use std::time::Duration;
@@ -40,10 +40,10 @@ async fn start_download(steam_download: steam::SteamDownload) {
let terminal_to_use = if steam_download.options().terminal().is_none() { default_terminal.first().unwrap() } else { &Terminal::from_index(&steam_download.options().terminal().unwrap()).unwrap() };
println!("\n\n---------------------HELLO FROM RUST!---------------------");
println!("We received these values from frontend:");
println!("-------------------------DEBUG INFO------------------------");
println!("received these values from frontend:");
println!("\t- Username: {}", steam_download.username().as_ref().unwrap_or(&String::from("Not provided")));
println!("\t- Password: {}", steam_download.password().as_ref().unwrap_or(&String::from("Not provided")));
// println!("\t- Password: {}", steam_download.password().as_ref().unwrap_or(&String::from("Not provided"))); Don't log in prod lol
println!("\t- App ID: {}", steam_download.app_id());
println!("\t- Depot ID: {}", steam_download.depot_id());
println!("\t- Manifest ID: {}", steam_download.manifest_id());

View File

@@ -144,7 +144,7 @@ $(async () => {
options: vectumOptions
};
console.log(steamDownload);
// console.debug(steamDownload);
await invoke("download_depotdownloader");
$("#downloadingnotice").prop("hidden", true);
@@ -153,7 +153,7 @@ $(async () => {
console.debug("DepotDownloader download process completed. Starting game download...");
await invoke("start_download", {steamDownload: steamDownload});
console.log("All done. Ready for next game");
console.log("Send frontend data over to backend. Ready for next download.");
});
$("#settings-button").on("click", async () => {

View File

@@ -44,6 +44,3 @@ function setTheme(theme: string) {
$("#theme-dark").attr("aria-selected", String(theme === "dark"));
$("#theme").attr("data-color-mode", theme);
}