Merge pull request #17771 from mattwire/ufmatch_validemail
[civicrm-core.git] / CRM / Core / BAO / UFMatch.php
index b64db8636a19f541ef7f0bfdaba8965250cc035c..d4900271542f9a25168d6ebe6f23c0bf3d19224b 100644 (file)
@@ -171,12 +171,6 @@ class CRM_Core_BAO_UFMatch extends CRM_Core_DAO_UFMatch {
    */
   public static function &synchronizeUFMatch(&$user, $userKey, $uniqId, $uf, $status = NULL, $ctype = NULL, $isLogin = FALSE) {
     $config = CRM_Core_Config::singleton();
-
-    if (!CRM_Utils_Rule::email($uniqId)) {
-      $retVal = $status ? NULL : FALSE;
-      return $retVal;
-    }
-
     $newContact = FALSE;
 
     // make sure that a contact id exists for this user id