From cd4d457bc044d7a0f98788f66ddbcc7d75b4e2cf Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sun, 11 Feb 2018 21:24:24 +0100 Subject: [PATCH] Fix a bug where the redirect route is unable to resolve when rate limited --- app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php b/app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php index f36871db9215..7d29892750d4 100644 --- a/app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php +++ b/app/Foundation/Exceptions/Displayers/ThrottleDisplayer.php @@ -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')); } /**