mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:34:29 -04:00
v5.6.1
This commit is contained in:
parent
89168d08f0
commit
503eb2febe
@ -86,6 +86,10 @@ class RouteServiceProvider extends ServiceProvider
|
||||
}
|
||||
});
|
||||
|
||||
RateLimiter::for('honeypot', function (Request $request) {
|
||||
return Limit::perMinute(2)->by($request->ip());
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,6 +141,9 @@ Route::group(['middleware' => ['invite_db'], 'prefix' => 'client', 'as' => 'clie
|
||||
|
||||
Route::get('phantom/{entity}/{invitation_key}', [Phantom::class, 'displayInvitation'])->middleware(['invite_db', 'phantom_secret'])->name('phantom_view');
|
||||
|
||||
Route::get('.env', function () {
|
||||
})->middleware('throttle:honeypot');
|
||||
|
||||
Route::fallback(function () {
|
||||
|
||||
if (Ninja::isSelfHost() && Account::first()?->set_react_as_default_ap) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user