Merge pull request #2907 from nstapelbroek/feature/fix-rate-limit-exception

Fix a bug where the redirect route is unable to resolve when rate limited
This commit is contained in:
James Brooks 2018-02-17 13:11:49 +00:00 committed by GitHub
commit e43f984dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class ThrottleDisplayer implements DisplayerInterface
*/
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'));
}
/**