Merge pull request #4547 from annando/multiple-accounts

Fix: Multiple accounts per mail address are allowed
2022.09-rc
Hypolite Petovan 2018-03-04 17:59:51 -05:00 zatwierdzone przez GitHub
commit 26f693fb80
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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.'));
}