diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index a47f6013..5c3193f8 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -102,6 +102,10 @@ function guest_register() $valid = false; $msg .= error(__('E-mail address is not correct.'), true); } + if (User::whereEmail($mail)->first()) { + $valid = false; + $msg .= error(__('E-mail address is already used by another user.'), true); + } } else { $valid = false; $msg .= error(__('Please enter your e-mail.'), true);