From: Michael Date: Sun, 4 Mar 2018 22:23:52 +0000 (+0000) Subject: Fix: Multiple accounts per mail address are allowed when not explicit forbidden X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd79ce3a57ad57af69df3461c1b1198ae46e1861;p=friendica.git Fix: Multiple accounts per mail address are allowed when not explicit forbidden --- diff --git a/src/Model/User.php b/src/Model/User.php index 702e815e60..a253865c23 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -382,7 +382,7 @@ class User throw new Exception(L10n::t('Not a valid email address.')); } - if (dba::exists('user', ['email' => $email])) { + if (Config::get('system', 'block_extended_register', false) && dba::exists('user', ['email' => $email])) { throw new Exception(L10n::t('Cannot use that email.')); }