[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: return more canonically formate
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: return more canonically formated JSON reply |
Date: |
Wed, 19 May 2021 20:18:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 227c3e6 return more canonically formated JSON reply
227c3e6 is described below
commit 227c3e6698b2067d60306576d938a5012e2d423e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 19 20:18:43 2021 +0200
return more canonically formated JSON reply
---
src/authorization/anastasis_authorization_plugin_email.c | 9 +++++++--
src/authorization/anastasis_authorization_plugin_post.c | 9 +++++++--
src/authorization/anastasis_authorization_plugin_sms.c | 9 +++++++--
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/authorization/anastasis_authorization_plugin_email.c
b/src/authorization/anastasis_authorization_plugin_email.c
index 586460b..33c400b 100644
--- a/src/authorization/anastasis_authorization_plugin_email.c
+++ b/src/authorization/anastasis_authorization_plugin_email.c
@@ -441,8 +441,13 @@ email_process (struct ANASTASIS_AUTHORIZATION_State *as,
user = GNUNET_strndup (as->email,
len);
- body = json_pack ("{s:s}",
- "email_username",
+ body = json_pack ("{s:I, s:s, s:s}",
+ "code",
+ TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED,
+ "hint",
+ TALER_ErrorCode_get_hint (
+
TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED),
+ "detail",
user);
GNUNET_free (user);
GNUNET_break (NULL != body);
diff --git a/src/authorization/anastasis_authorization_plugin_post.c
b/src/authorization/anastasis_authorization_plugin_post.c
index ac1e738..1f20ff3 100644
--- a/src/authorization/anastasis_authorization_plugin_post.c
+++ b/src/authorization/anastasis_authorization_plugin_post.c
@@ -502,8 +502,13 @@ post_process (struct ANASTASIS_AUTHORIZATION_State *as,
{
json_t *body;
- body = json_pack ("{s:s}",
- "zip_code",
+ body = json_pack ("{s:I, s:s, s:s}",
+ "code",
+ TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED,
+ "hint",
+ TALER_ErrorCode_get_hint (
+
TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED),
+ "detail",
zip);
GNUNET_break (NULL != body);
resp = TALER_MHD_make_json (body);
diff --git a/src/authorization/anastasis_authorization_plugin_sms.c
b/src/authorization/anastasis_authorization_plugin_sms.c
index e59d3e0..01b5f73 100644
--- a/src/authorization/anastasis_authorization_plugin_sms.c
+++ b/src/authorization/anastasis_authorization_plugin_sms.c
@@ -435,8 +435,13 @@ sms_process (struct ANASTASIS_AUTHORIZATION_State *as,
{
json_t *body;
- body = json_pack ("{s:s}",
- "number_suffix",
+ body = json_pack ("{s:I, s:s, s:s}",
+ "code",
+ TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED,
+ "hint",
+ TALER_ErrorCode_get_hint (
+
TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED),
+ "detail",
end);
GNUNET_break (NULL != body);
resp = TALER_MHD_make_json (body);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: return more canonically formated JSON reply,
gnunet <=