Skip to content

Commit

Permalink
Merge pull request #2907 from nstapelbroek/feature/fix-rate-limit-exc…
Browse files Browse the repository at this point in the history
…eption

Fix a bug where the redirect route is unable to resolve when rate limited
  • Loading branch information
jbrooksuk committed Feb 17, 2018
2 parents 8fc9c68 + cd4d457 commit e43f984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(Request $request)
*/
public function display(Exception $exception, $id, $code, array $headers)
{
return redirect()->route('auth.login')->withError(trans('forms.login.rate-limit'));
return cachet_redirect('auth.login')->withError(trans('forms.login.rate-limit'));
}

/**
Expand Down

0 comments on commit e43f984

Please sign in to comment.