Fix for spam checker

This commit is contained in:
Hillel Coren 2018-03-18 16:48:27 +02:00
parent 8a2d6c2dd5
commit 2108c6d49c

View File

@ -130,7 +130,7 @@ class AccountRepository
{ {
$ip = Request::getClientIp(); $ip = Request::getClientIp();
$count = Account::whereIp($ip)->whereHas('users', function ($query) { $count = Account::whereIp($ip)->whereHas('users', function ($query) {
$query->whereConfirmed(true); $query->whereRegistered(true);
})->count(); })->count();
if ($count > 1 && $errorEmail = env('ERROR_EMAIL')) { if ($count > 1 && $errorEmail = env('ERROR_EMAIL')) {