Replace @csrf token with code that makes more sense.

This commit is contained in:
James Cole committed 2026-09-18 12:51:27 +02:00
1 parent 0a0983fe2a
commit 36987fa8c1
2 files changed
+3 -3

No files matched your search

@@ -35,7 +35,7 @@
<div class="col">
<!-- Authorize Button -->
<form method="post" class="form-inline" action="{{ route('passport.authorizations.approve') }}">
@csrf
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<input type="hidden" name="state" value="{{ $request->state }}">
<input type="hidden" name="client_id" value="{{ $client->getKey() }}">
<input type="hidden" name="auth_token" value="{{ $authToken }}">
@@ -47,7 +47,7 @@
<div class="col">
<!-- Cancel Button -->
<form method="post" action="{{ route('passport.authorizations.deny') }}">
@csrf
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@method('DELETE')
<input type="hidden" name="state" value="{{ $request->state }}">
+1 -1
View File
@@ -437,7 +437,7 @@
<div class="modal fade" tabindex="-1" role="dialog" id="customDateRangeModal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<form action="{{ route('daterange') }}?redirect=true" method="POST" id="daterange-form">
@csrf
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<input type="hidden" name="start" value="" id="customStart"/>
<input type="hidden" name="end" value="" id="customEnd"/>
<div class="modal-content">