gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: require + prefix for phone


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: require + prefix for phone number, add message (#7081)
Date: Tue, 16 Nov 2021 16:04:54 +0100

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 fca62a9  require + prefix for phone number, add message (#7081)
fca62a9 is described below

commit fca62a91d78ba412911232006db5b237437557c2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 16 16:04:52 2021 +0100

    require + prefix for phone number, add message (#7081)
---
 contrib/anastasis_gtk_auth_add_sms.glade        | 17 +++++++++++++++++
 src/anastasis/anastasis-gtk_handle-method-sms.c |  4 ++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/contrib/anastasis_gtk_auth_add_sms.glade 
b/contrib/anastasis_gtk_auth_add_sms.glade
index cdd4f45..bd42f03 100644
--- a/contrib/anastasis_gtk_auth_add_sms.glade
+++ b/contrib/anastasis_gtk_auth_add_sms.glade
@@ -152,6 +152,23 @@ code you will receive by SMS.</property>
                     <property name="position">1</property>
                   </packing>
                 </child>
+                <child>
+                  <object class="GtkLabel" 
id="phone_number_format_explainer_label">
+                    <property name="visible">True</property>
+                    <property name="can-focus">False</property>
+                    <property name="margin-start">20</property>
+                    <property name="margin-end">20</property>
+                    <property name="label" translatable="yes">Enter mobile 
number including +CC international dialing prefix.</property>
+                    <attributes>
+                      <attribute name="scale" value="0.80000000000000004"/>
+                    </attributes>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">2</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="expand">True</property>
diff --git a/src/anastasis/anastasis-gtk_handle-method-sms.c 
b/src/anastasis/anastasis-gtk_handle-method-sms.c
index 026a5fc..74ffa08 100644
--- a/src/anastasis/anastasis-gtk_handle-method-sms.c
+++ b/src/anastasis/anastasis-gtk_handle-method-sms.c
@@ -1,6 +1,6 @@
 /*
      This file is part of anastasis-gtk.
-     Copyright (C) 2020 Anastasis SARL
+     Copyright (C) 2020-2021 Anastasis SARL
 
      Anastasis is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -193,7 +193,7 @@ anastasis_gtk_b_sms_dialog_phonenumber_entry_changed_cb 
(GtkEntry *entry,
   const char *qs;
   regex_t regex;
   int regex_result;
-  const char *regexp = "^\\+?[0-9]+$";
+  const char *regexp = "^\\+[0-9]+$";
 
   regex_result = regcomp (&regex,
                           regexp,

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