Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear Login Attempts in Laravel?

I'm using Laravel's Auth Throttling feature and it is working correctly but I would like to know how to clear the login attempts for that email? http://laravel.com/docs/5.1/authentication#authentication-throttling

currently the lockout time is at "Too many login attempts. Please try again in 5418 seconds"

like image 453
user3407278 Avatar asked Nov 29 '22 10:11

user3407278


2 Answers

run this in the console php artisan cache:clear and you're good to go

like image 173
buzdykg Avatar answered Dec 04 '22 03:12

buzdykg


In your controller that includes the ThrottlesLogins trait, create a new route handler method:

public function clearThrottle(Request $request) {
    $this->clearLoginAttempts($request);
    // Forward elsewhere or display a view
}
like image 29
EricMakesStuff Avatar answered Dec 04 '22 04:12

EricMakesStuff