Update SiteController, only allow redirects for logged in users

This commit is contained in:
Daniel Supernault 2021-01-28 21:25:43 -07:00
parent 10b178c8ee
commit 7d376c64ec
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -109,6 +109,7 @@ class SiteController extends Controller
public function redirectUrl(Request $request)
{
abort_if(!$request->user(), 404);
$this->validate($request, [
'url' => 'required|url'
]);