diff --git a/src/contact.php b/src/contact.php index 804a00748..ad5a650fe 100644 --- a/src/contact.php +++ b/src/contact.php @@ -664,10 +664,11 @@ private function actas_user($x) { // new account must exist $u = $this->conf->user_by_email($email); - if (!$u - && validate_email($email) - && $this->conf->opt("debugShowSensitiveEmail")) { - $u = Contact::make_email($this->conf, $email)->store(); + if (!$u && validate_email($email)) { + $u = $this->conf->cdb_user_by_email($email); + if (!$u && $this->conf->opt("debugShowSensitiveEmail")) { + $u = Contact::make_email($this->conf, $email)->store(); + } } if (!$u) { return $this;