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:
parent
3e035410dd
commit
601b123818
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user