Fix redirect route in DecideWhatToDoWithUser middleware

This commit is contained in:
Andras Bacsai 2023-12-28 22:26:21 +01:00
parent 019887739c
commit 32dbdf5204

View File

@ -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())) {