We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6206d commit ef94d45Copy full SHA for ef94d45
src/Middleware/Throttle.php
@@ -37,8 +37,12 @@ public function handle($request, Closure $next)
37
38
protected function getToManyAttemptsMessage()
39
{
40
- return Lang::has('auth.to_many_attempts')
41
- ? trans('auth.to_many_attempts')
42
- : 'To many attempts!';
+ $seconds = RateLimiter::availableIn('login-tries-' . Admin::guardName());
+
+ $message = Lang::has('auth.throttle')
43
+ ? trans('auth.throttle', ['seconds' => $seconds])
44
+ : "Too many login attempts. Please try again in " . $seconds . " seconds.";
45
46
+ return $message;
47
}
48
0 commit comments