Added login throttling

This commit is contained in:
Graham Campbell
2014-12-29 21:58:30 +00:00
parent a1442b9d85
commit 1f71919f0b
9 changed files with 114 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ class AuthController extends Controller
if (Auth::attempt(Input::only(['email', 'password']))) {
return Redirect::intended('dashboard');
} else {
Throttle::hit(Request::instance(), 10, 10);
return Redirect::back()
->withInput(Input::except('password'))
->with('error', 'Invalid email or password');