]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Multiple accounts per mail address are allowed when not explicit forbidden
authorMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 22:23:52 +0000 (22:23 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 22:23:52 +0000 (22:23 +0000)
src/Model/User.php

index 702e815e601aa268ee0f2dee8feba8ced4c64428..a253865c2331a903cb1684411fc591308184c55a 100644 (file)
@@ -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.'));
                }