From 1c00c5051104887ac181a3c1ec87b63c35e7f9bc Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 16 Jan 2026 09:49:35 +0800 Subject: fix(security): Potential fix for code scanning alert no. 3: Cleartext logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src-tauri/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src-tauri/src') diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 3671166..b59ae31 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -83,13 +83,9 @@ async fn start_game( .clone() .ok_or("No active account found. Please login first.")?; - let account_type = match &account { - core::auth::Account::Offline(_) => "Offline", - core::auth::Account::Microsoft(_) => "Microsoft", - }; emit_log!( window, - format!("Account found: {} ({})", account.username(), account_type) + format!("Account found: {}", account.username()) ); let config = config_state.config.lock().unwrap().clone(); -- cgit v1.2.3-70-g09d2