Skip to content

Commit

Permalink
Merge pull request #3823 from craigballinger/signed-verify-redirect
Browse files Browse the repository at this point in the history
Generate a signed url for the verify redirect
  • Loading branch information
jbrooksuk committed Oct 18, 2019
2 parents 0319d78 + bc4ebac commit 10c4e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/SubscribeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Illuminate\Contracts\Config\Repository;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\View;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
Expand Down Expand Up @@ -120,7 +121,7 @@ public function getVerify($code = null)
execute(new VerifySubscriberCommand($subscriber));
}

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

Expand Down

0 comments on commit 10c4e52

Please sign in to comment.