gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: allow user to enter code wi


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: allow user to enter code with 'A-' prefix
Date: Sun, 28 Mar 2021 21:25:16 +0200

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

grothoff pushed a commit to branch master
in repository anastasis-gtk.

The following commit(s) were added to refs/heads/master by this push:
     new 8d6cdbf  allow user to enter code with 'A-' prefix
8d6cdbf is described below

commit 8d6cdbf7c09c0adb40697b5a9b6a6173fa0788ee
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 28 21:25:13 2021 +0200

    allow user to enter code with 'A-' prefix
---
 src/anastasis/anastasis-gtk_handle-challenge-code.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/anastasis/anastasis-gtk_handle-challenge-code.c 
b/src/anastasis/anastasis-gtk_handle-challenge-code.c
index 11e46e8..1a74968 100644
--- a/src/anastasis/anastasis-gtk_handle-challenge-code.c
+++ b/src/anastasis/anastasis-gtk_handle-challenge-code.c
@@ -65,6 +65,9 @@ anastasis_gtk_c_code_dialog_response_cb (GtkDialog *dialog,
   q = GTK_ENTRY (gtk_builder_get_object (builder,
                                          "anastasis_gtk_c_code_entry"));
   qs = gtk_entry_get_text (q);
+  if ( (NULL != qs) &&
+       (0 == strncasecmp ("a-", qs)) )
+    qs += 2; /* skip "A-" prefix if present */
   if (1 != sscanf (qs,
                    "%llu%c",
                    &pin,
@@ -102,6 +105,9 @@ anastasis_gtk_c_code_dialog_answer_entry_changed_cb 
(GtkEntry *entry,
   a = GTK_ENTRY (gtk_builder_get_object (builder,
                                          "anastasis_gtk_c_code_entry"));
   as = gtk_entry_get_text (a);
+  if ( (NULL != as) &&
+       (0 == strncasecmp ("a-", as)) )
+    as += 2; /* skip "A-" prefix if present */
   ok = ( (NULL != as) &&
          (1 == sscanf (as,
                        "%u%c",

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