Browse code

sync legacy contact data while verification of e-mail-address

Bernd Wurst authored on30/07/2020 10:31:09
Showing1 changed files
... ...
@@ -15,6 +15,7 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
15 15
 */
16 16
 
17 17
 require_once("inc/api.php");
18
+require_once("contacts.php");
18 19
 
19 20
 function verify_mail_token($token)
20 21
 {
... ...
@@ -43,6 +44,7 @@ function update_mailaddress($daten)
43 44
     $args = array(':contact' => $contact,
44 45
                   ':email' => $email);
45 46
     db_query("UPDATE kundendaten.contacts SET email=:email WHERE id=:contact", $args);
47
+    sync_legacy_contactdata();
46 48
 }
47 49
 
48 50