mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Increase duplicate IP check
This commit is contained in:
parent
622de49c64
commit
84a5718f3c
@ -133,13 +133,13 @@ class AccountRepository
|
|||||||
$query->whereRegistered(true);
|
$query->whereRegistered(true);
|
||||||
})->count();
|
})->count();
|
||||||
|
|
||||||
if ($count > 1 && $errorEmail = env('ERROR_EMAIL')) {
|
if ($count > 10 && $errorEmail = env('ERROR_EMAIL')) {
|
||||||
\Mail::raw($ip, function ($message) use ($ip, $errorEmail) {
|
\Mail::raw($ip, function ($message) use ($ip, $errorEmail) {
|
||||||
$message->to($errorEmail)
|
$message->to($errorEmail)
|
||||||
->from(CONTACT_EMAIL)
|
->from(CONTACT_EMAIL)
|
||||||
->subject('Duplicate company for IP: ' . $ip);
|
->subject('Duplicate company for IP: ' . $ip);
|
||||||
});
|
});
|
||||||
if ($count >= 5) {
|
if ($count >= 15) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user