From 08134b3ba3a83779d12148047982f8527990e4ce Mon Sep 17 00:00:00 2001 From: dal Date: Wed, 12 Feb 2025 12:12:22 -0800 Subject: [PATCH] Update cli/src/commands/auth.rs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- cli/src/commands/auth.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/src/commands/auth.rs b/cli/src/commands/auth.rs index 2947b08c6..c27d0ce5d 100644 --- a/cli/src/commands/auth.rs +++ b/cli/src/commands/auth.rs @@ -94,11 +94,7 @@ pub async fn auth_with_args(args: AuthArgs) -> Result<()> { } if buster_creds.api_key.is_empty() { - let obfuscated_api_key = if buster_creds.api_key.is_empty() { - String::from("None") - } else { - format!("{}****", &buster_creds.api_key[..4]) - }; + let obfuscated_api_key = String::from("None"); let api_key_input = Password::new(&format!("Enter your API key [{obfuscated_api_key}]:")) .without_confirmation()