Skip to content

Commit 10c4e52

Browse files
authored
Merge pull request #3823 from craigballinger/signed-verify-redirect
Generate a signed url for the verify redirect
2 parents 0319d78 + bc4ebac commit 10c4e52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/SubscribeController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Illuminate\Contracts\Config\Repository;
2929
use Illuminate\Routing\Controller;
3030
use Illuminate\Support\Facades\Config;
31+
use Illuminate\Support\Facades\URL;
3132
use Illuminate\Support\Facades\View;
3233
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
3334
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -120,7 +121,7 @@ public function getVerify($code = null)
120121
execute(new VerifySubscriberCommand($subscriber));
121122
}
122123

123-
return cachet_redirect('subscribe.manage', $code)
124+
return redirect()->to(URL::signedRoute(cachet_route_generator('subscribe.manage'), ['code' => $code]))
124125
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('cachet.subscriber.email.subscribed')));
125126
}
126127

0 commit comments

Comments
 (0)