From 524153cb31c8a7d6e5e40a4921c414193f55be3d Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 20 Aug 2024 11:44:44 +0200 Subject: [PATCH] Also removing userId from messageLog --- .../net/dankito/banking/fints/log/MessageLogCollector.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt index 1b0a02a9..739fbbf9 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt @@ -108,6 +108,11 @@ open class MessageLogCollector { .replace(bank.customerId, "") .replace("+" + bank.pin, "+") + if (bank.userId != bank.customerId) { + prettyPrintMessageWithoutSensitiveData = prettyPrintMessageWithoutSensitiveData + .replace(bank.userId, "") + } + if (bank.customerName.isNotBlank()) { prettyPrintMessageWithoutSensitiveData = prettyPrintMessageWithoutSensitiveData .replace(bank.customerName, "", true)