Remove the preg match replace for usernames
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 24 May 2018 15:05:45 +0000 (11:05 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 24 May 2018 15:05:45 +0000 (11:05 -0400)
@ and . are allowed.

models/admin/import/contacts.php

index 7cbb33b..e45fa7a 100644 (file)
@@ -390,7 +390,7 @@ class GlmMembersAdmin_import_contacts extends GlmDataContacts
             // Get the contact data into standard parameters
             $oldMemberID        = ($c[0]-0);
             $memberName         = trim($c[1]);
-            $memberLogin        = preg_replace('/[^a-zA-Z0-9_-]+/', '', trim($c[2]));
+            $memberLogin        = trim($c[2]);//preg_replace('/[^a-zA-Z0-9_-.\\@]+/', '', trim($c[2]));
             $memberPasswd       = trim($c[3]);
             $memberContactEmail = trim($c[4]);
             $contactFname       = trim($c[5]);