Increase duplicate IP check
This commit is contained in:
parent
79828a220f
commit
4aa8abdbee
1 changed files with 2 additions and 2 deletions
|
|
@ -133,13 +133,13 @@ class AccountRepository
|
|||
$query->whereRegistered(true);
|
||||
})->count();
|
||||
|
||||
if ($count > 1 && $errorEmail = env('ERROR_EMAIL')) {
|
||||
if ($count > 10 && $errorEmail = env('ERROR_EMAIL')) {
|
||||
\Mail::raw($ip, function ($message) use ($ip, $errorEmail) {
|
||||
$message->to($errorEmail)
|
||||
->from(CONTACT_EMAIL)
|
||||
->subject('Duplicate company for IP: ' . $ip);
|
||||
});
|
||||
if ($count >= 5) {
|
||||
if ($count >= 15) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue