Files
cachet-docker/app/filters/LoginThrottlingFilter.php
Graham Campbell df101a27c2 Deleted rubbish
2014-12-30 17:38:00 +00:00

15 lines
420 B
PHP

<?php
class LoginThrottlingFilter
{
public function filter($route, $request)
{
// check if we've reached the rate limit, but don't hit the throttle yet
// we can hit the throttle later on in the if validation passes
if (!Throttle::check($request, 10, 10)) {
return Redirect::back()
->with('error', 'You have made too many login requests.');
}
}
}