mirror of https://github.com/buster-so/buster.git
Update cli/src/commands/auth.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
3aa70eaa73
commit
08134b3ba3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue