commit 1b0f326dde0586ea6b0489d692c5a5a3adf0d318
parent f542be70178190d10f063b7af5cbb020bb0578b9
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 14 Apr 2025 09:51:13 +0200
only allow existing address registration once we started KYX
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-httpd_kyc-info.c b/src/exchange/taler-exchange-httpd_kyc-info.c
@@ -542,7 +542,11 @@ current_rules_cb (
)));
return;
}
-
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Making applicable zero-measures under current rules active\n");
+ json_dumpf (jmeasures,
+ stderr,
+ JSON_INDENT (2));
qs = TEH_plugin->insert_active_legitimization_measure (
TEH_plugin->cls,
&kyp->access_token,
diff --git a/src/kyclogic/taler-exchange-helper-measure-tops-address-check b/src/kyclogic/taler-exchange-helper-measure-tops-address-check
@@ -137,6 +137,9 @@ CUSTOM_MEASURES=$(jq -n \
# Then trigger Challenger address check via oauth2, kyc-check-postal-registration
NEW_RULES=$(echo "$CURRENT_RULES" | jq '(.rules[] |= if (.measures[0]=="kyx") then .measures=["custom-address-investigation"] else . end)' | jq --argjson cm "$CUSTOM_MEASURES" '.custom_measures=$cm')
+# Replace all existing 'postal-registration' measures with 'custom-address-investigation'
+NEW_RULES=$(echo "$NEW_RULES" | jq '(.rules[].measures[] |= if (. =="postal-registration") then "custom-address-investigation" else . end)' | jq --argjson cm "$CUSTOM_MEASURES" '.custom_measures=$cm')
+
# Finally, output the new rules.
# See https://docs.taler.net/taler-kyc-manual.html#tsref-type-AmlOutcome
# for the required output format.