summaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_recovery_redux.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-04-06 14:32:53 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-04-06 14:32:53 +0200
commite9c63cf3194aacb950026bec8ff2201f1d1f5418 (patch)
tree02115e9216f058cb2de582adcffe06019cb5d87e /src/reducer/anastasis_api_recovery_redux.c
parent979b9ed5f672a74ec06c0c330f80e28c842e4e29 (diff)
downloadanastasis-e9c63cf3194aacb950026bec8ff2201f1d1f5418.tar.gz
anastasis-e9c63cf3194aacb950026bec8ff2201f1d1f5418.tar.bz2
anastasis-e9c63cf3194aacb950026bec8ff2201f1d1f5418.zip
fix #7218 and #7219
Diffstat (limited to 'src/reducer/anastasis_api_recovery_redux.c')
-rw-r--r--src/reducer/anastasis_api_recovery_redux.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/reducer/anastasis_api_recovery_redux.c b/src/reducer/anastasis_api_recovery_redux.c
index e08c7e7..a8083f2 100644
--- a/src/reducer/anastasis_api_recovery_redux.c
+++ b/src/reducer/anastasis_api_recovery_redux.c
@@ -593,6 +593,35 @@ start_feedback_cb (
sctx->state);
sctx_free (sctx);
return;
+
+ case ANASTASIS_CHALLENGE_START_STATUS_TAN_ALREADY_SENT:
+ {
+ json_t *instructions;
+ char *hint;
+
+ GNUNET_asprintf (&hint,
+ _ ("TAN code already sent."));
+ instructions = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("state",
+ "send-to-address"),
+ GNUNET_JSON_pack_string ("display_hint",
+ hint),
+ GNUNET_JSON_pack_uint64 ("http_status",
+ (json_int_t) csr->http_status));
+ GNUNET_free (hint);
+ GNUNET_assert (0 ==
+ json_object_set_new (feedback,
+ uuid,
+ instructions));
+ }
+ set_state (sctx->state,
+ ANASTASIS_RECOVERY_STATE_CHALLENGE_SOLVING);
+ sctx->cb (sctx->cb_cls,
+ TALER_EC_NONE,
+ sctx->state);
+ sctx_free (sctx);
+ return;
+
case ANASTASIS_CHALLENGE_START_STATUS_PAYMENT_REQUIRED:
{
json_t *pay;