From 32dbdf52049b4efff7ee57155c7f86bf732b1965 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 28 Dec 2023 22:26:21 +0100 Subject: [PATCH] Fix redirect route in DecideWhatToDoWithUser middleware --- app/Http/Middleware/DecideWhatToDoWithUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/DecideWhatToDoWithUser.php b/app/Http/Middleware/DecideWhatToDoWithUser.php index 89426c7cd..30780910b 100644 --- a/app/Http/Middleware/DecideWhatToDoWithUser.php +++ b/app/Http/Middleware/DecideWhatToDoWithUser.php @@ -25,7 +25,7 @@ public function handle(Request $request, Closure $next): Response if ($request->path() === 'verify' || in_array($request->path(), allowedPathsForInvalidAccounts()) || $request->routeIs('verify.verify')) { return $next($request); } - return redirect()-route('verify.email'); + return redirect()->route('verify.email'); } if (!isSubscriptionActive() && !isSubscriptionOnGracePeriod()) { if (!in_array($request->path(), allowedPathsForUnsubscribedAccounts())) {