commit 617906bdbed23f935df322d0c690bb480a7c09e2
parent a41a202b00bafdcf8fc8debf415a7da1097d214a
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 7 Apr 2025 15:42:49 -0300
fix: unable to enable account when the exchange has kyc disabled
when exchange reply with 204 in /kyc-check endpoint then kyc_ok = true but auth_ok still false.
auth_ok means that access token is present for the kyc process to be completed, so is only important if kyc_ok = false.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
@@ -526,6 +526,10 @@ map_to_status (const struct ExchangeKycRequest *ekr)
{
return "no-exchange-keys";
}
+ if (ekr->kyc_ok)
+ {
+ return "ready";
+ }
if (! ekr->auth_ok)
{
if (ekr->kyc_auth_conflict)
@@ -534,10 +538,6 @@ map_to_status (const struct ExchangeKycRequest *ekr)
}
if (ekr->in_aml_review)
return "awaiting-aml-review";
- if (ekr->kyc_ok)
- {
- return "ready";
- }
switch (ekr->last_http_status)
{
case 0: