mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Ignore Apple's IP
This commit is contained in:
parent
3e035410dd
commit
601b123818
@ -132,6 +132,12 @@ class AccountRepository
|
|||||||
private function checkForSpammer()
|
private function checkForSpammer()
|
||||||
{
|
{
|
||||||
$ip = Request::getClientIp();
|
$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) {
|
$count = Account::whereIp($ip)->whereHas('users', function ($query) {
|
||||||
$query->whereRegistered(true);
|
$query->whereRegistered(true);
|
||||||
})->count();
|
})->count();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user