1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Ignore Apple's IP

This commit is contained in:
Hillel Coren 2018-07-24 21:32:30 +03:00
parent 3e035410dd
commit 601b123818

View File

@ -132,6 +132,12 @@ class AccountRepository
private function checkForSpammer()
{
$ip = Request::getClientIp();
// Apple's IP for their test accounts
if ($ip == '17.200.11.44') {
return;
}
$count = Account::whereIp($ip)->whereHas('users', function ($query) {
$query->whereRegistered(true);
})->count();