mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for spam checker
This commit is contained in:
parent
8a2d6c2dd5
commit
2108c6d49c
@ -130,7 +130,7 @@ class AccountRepository
|
||||
{
|
||||
$ip = Request::getClientIp();
|
||||
$count = Account::whereIp($ip)->whereHas('users', function ($query) {
|
||||
$query->whereConfirmed(true);
|
||||
$query->whereRegistered(true);
|
||||
})->count();
|
||||
|
||||
if ($count > 1 && $errorEmail = env('ERROR_EMAIL')) {
|
||||
|
Loading…
Reference in New Issue
Block a user