mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
Support per-format provider key auth
This commit is contained in:
@@ -168,7 +168,7 @@ pub(crate) fn mapping_preview_masked_catalog_api_key(
|
||||
state: &AdminAppState<'_>,
|
||||
key: &StoredProviderCatalogKey,
|
||||
) -> String {
|
||||
let ciphertext = key.encrypted_api_key.trim();
|
||||
let ciphertext = key.encrypted_api_key.as_deref().unwrap_or("").trim();
|
||||
if ciphertext.is_empty() {
|
||||
return "***".to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user