简体   繁体   中英

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"

在控制台php artisan cache:clear运行它php artisan cache:clear ,你很高兴

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
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM