Skip to content

Commit 07b8916

Browse files
committed
Remove option for duplicate email use
1 parent 9f920a5 commit 07b8916

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

etc/config.sample.json

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"user_password_pepper": "bnetdocs-INSERTRANDOMVALUEHERE",
3131
"user_register_disabled": false,
3232
"user_register_requirements": {
33-
"email_duplicate_allowed": false,
3433
"email_validate_quick": true,
3534
"password_allow_email": false,
3635
"password_allow_username": false,

src/controllers/User/Register.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected function tryRegister(Router &$router, UserRegisterModel &$model) {
137137
}
138138

139139
try {
140-
if (!$req->email_duplicate_allowed && User::findIdByEmail($email)) {
140+
if (User::findIdByEmail($email)) {
141141
$model->error = "EMAIL_ALREADY_USED";
142142
return;
143143
}

0 commit comments

Comments
 (0)