mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(payment_methods): mask the email address being logged in the payment_method_list response logs (#4749)
This commit is contained in:
@ -531,7 +531,8 @@ pub struct RequiredFieldInfo {
|
||||
#[schema(value_type = FieldType)]
|
||||
pub field_type: api_enums::FieldType,
|
||||
|
||||
pub value: Option<String>,
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub value: Option<masking::Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, ToSchema)]
|
||||
|
||||
@ -2268,7 +2268,7 @@ pub async fn list_payment_methods(
|
||||
.as_ref()
|
||||
.and_then(|r| get_val(key.to_owned(), r));
|
||||
if let Some(s) = temp {
|
||||
val.value = Some(s)
|
||||
val.value = Some(s.into())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user