gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -finish kyc wallet implementatio


From: gnunet
Subject: [taler-exchange] branch master updated: -finish kyc wallet implementation (except for DB interaction)
Date: Sun, 17 Oct 2021 14:32:34 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new c6c9db0c -finish kyc wallet implementation (except for DB interaction)
c6c9db0c is described below

commit c6c9db0c8e3768b44b8ec41a8ef173fbd2985c5b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 17 14:32:32 2021 +0200

    -finish kyc wallet implementation (except for DB interaction)
---
 src/exchange/taler-exchange-httpd_kyc-wallet.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c 
b/src/exchange/taler-exchange-httpd_kyc-wallet.c
index 84eb28fa..d5bbb851 100644
--- a/src/exchange/taler-exchange-httpd_kyc-wallet.c
+++ b/src/exchange/taler-exchange-httpd_kyc-wallet.c
@@ -129,7 +129,13 @@ TEH_handler_kyc_wallet (
       TALER_EC_EXCHANGE_KYC_WALLET_SIGNATURE_INVALID,
       NULL);
   }
-
+  if (TEH_KYC_NONE == TEH_kyc_config.mode)
+    return TALER_MHD_reply_static (
+      connection,
+      MHD_HTTP_NO_CONTENT,
+      NULL,
+      NULL,
+      0);
   ret = TEH_DB_run_transaction (connection,
                                 "check wallet kyc",
                                 &res,
@@ -137,14 +143,11 @@ TEH_handler_kyc_wallet (
                                 &krc);
   if (GNUNET_SYSERR == ret)
     return res;
-
-  // FIXME: act on krc.kyc!
-  return TALER_MHD_reply_static (
+  return TALER_MHD_REPLY_JSON_PACK (
     connection,
-    MHD_HTTP_NO_CONTENT,
-    NULL,
-    NULL,
-    0);
+    MHD_HTTP_OK,
+    GNUNET_JSON_pack_uint64 ("payment_target_uuid",
+                             krc.kyc.payment_target_uuid));
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]