gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix transition from generic to


From: gnunet
Subject: [taler-anastasis] branch master updated: fix transition from generic to backup/recovery
Date: Sun, 21 Feb 2021 19:46:24 +0100

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 4f1a239  fix transition from generic to backup/recovery
4f1a239 is described below

commit 4f1a23922d6c6f179c74f744388f92ddc2245c5f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 21 19:46:22 2021 +0100

    fix transition from generic to backup/recovery
---
 src/reducer/anastasis_api_redux.c | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/reducer/anastasis_api_redux.c 
b/src/reducer/anastasis_api_redux.c
index a448104..09a7898 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -1229,9 +1229,13 @@ enter_user_attributes (json_t *state,
     if (0 == strcmp (s_mode,
                      "backup_state"))
     {
-      redux_transition (state,
-                        ANASTASIS_BACKUP_STATE_AUTHENTICATIONS_EDITING);
-
+      GNUNET_assert (0 ==
+                     json_object_set_new (
+                       state,
+                       "backup_state",
+                       json_string (
+                         ANASTASIS_backup_state_to_string_ (
+                           ANASTASIS_BACKUP_STATE_AUTHENTICATIONS_EDITING))));
       return ANASTASIS_REDUX_backup_begin_ (state,
                                             arguments,
                                             cb,
@@ -1239,8 +1243,13 @@ enter_user_attributes (json_t *state,
     }
     else
     {
-      redux_transition (state,
-                        ANASTASIS_RECOVERY_STATE_CHALLENGE_SELECTING);
+      GNUNET_assert (0 ==
+                     json_object_set_new (
+                       state,
+                       "backup_state",
+                       json_string (
+                         ANASTASIS_recovery_state_to_string_ (
+                           ANASTASIS_RECOVERY_STATE_CHALLENGE_SELECTING))));
       return ANASTASIS_REDUX_recovery_challenge_begin_ (state,
                                                         arguments,
                                                         cb,

-- 
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]