From c87f82521def9880c851dc9d53309e8e1a94b293 Mon Sep 17 00:00:00 2001 From: Pedro Cunha Date: Fri, 29 Nov 2024 00:49:20 +0000 Subject: [PATCH] fix: add CSRF token to all forms --- resources/views/client/create.blade.php | 1 + resources/views/client/delete.blade.php | 1 + resources/views/dashboard/login.blade.php | 1 + resources/views/key/create.blade.php | 1 + resources/views/key/delete.blade.php | 1 + resources/views/mod/create.blade.php | 1 + resources/views/mod/delete.blade.php | 1 + resources/views/mod/view.blade.php | 3 +++ resources/views/modpack/build/create.blade.php | 1 + resources/views/modpack/build/delete.blade.php | 1 + resources/views/modpack/build/edit.blade.php | 1 + resources/views/modpack/build/view.blade.php | 3 +++ resources/views/modpack/create.blade.php | 1 + resources/views/modpack/delete.blade.php | 1 + resources/views/modpack/edit.blade.php | 1 + resources/views/user/create.blade.php | 1 + resources/views/user/delete.blade.php | 1 + resources/views/user/edit.blade.php | 1 + 18 files changed, 22 insertions(+) diff --git a/resources/views/client/create.blade.php b/resources/views/client/create.blade.php index f7f14572..e0c2e145 100644 --- a/resources/views/client/create.blade.php +++ b/resources/views/client/create.blade.php @@ -20,6 +20,7 @@
+ @csrf
diff --git a/resources/views/client/delete.blade.php b/resources/views/client/delete.blade.php index 0881bb7b..ca0e25d2 100644 --- a/resources/views/client/delete.blade.php +++ b/resources/views/client/delete.blade.php @@ -8,6 +8,7 @@

Delete Client ({{ $client->name }})

This will immediately remove access to all modpacks this user has access to.

+ @csrf Go Back diff --git a/resources/views/dashboard/login.blade.php b/resources/views/dashboard/login.blade.php index 62aabfaa..62a0cc06 100644 --- a/resources/views/dashboard/login.blade.php +++ b/resources/views/dashboard/login.blade.php @@ -12,6 +12,7 @@
+ @csrf
diff --git a/resources/views/key/create.blade.php b/resources/views/key/create.blade.php index 5a8073d3..eb741df1 100644 --- a/resources/views/key/create.blade.php +++ b/resources/views/key/create.blade.php @@ -20,6 +20,7 @@
+ @csrf
diff --git a/resources/views/key/delete.blade.php b/resources/views/key/delete.blade.php index 3c53847c..ec263c40 100644 --- a/resources/views/key/delete.blade.php +++ b/resources/views/key/delete.blade.php @@ -9,6 +9,7 @@

This will immediately remove access to Solder using this API Key. Make sure to unlink any packs using this key before doing this.

+ @csrf Go Back diff --git a/resources/views/mod/create.blade.php b/resources/views/mod/create.blade.php index 3f36edcb..30a65169 100644 --- a/resources/views/mod/create.blade.php +++ b/resources/views/mod/create.blade.php @@ -19,6 +19,7 @@
@endif
+ @csrf
diff --git a/resources/views/mod/delete.blade.php b/resources/views/mod/delete.blade.php index 9d0b2242..b16b00fd 100644 --- a/resources/views/mod/delete.blade.php +++ b/resources/views/mod/delete.blade.php @@ -45,6 +45,7 @@

+ @csrf Go Back diff --git a/resources/views/mod/view.blade.php b/resources/views/mod/view.blade.php index a0781064..8e1c700e 100644 --- a/resources/views/mod/view.blade.php +++ b/resources/views/mod/view.blade.php @@ -35,6 +35,7 @@
@endif
+ @csrf
@@ -107,6 +108,7 @@ class="form-control" + @csrf @@ -128,6 +130,7 @@ class="form-control" @foreach ($mod->versions->sortByDesc('id') as $ver) + @csrf {{ $ver->version }} diff --git a/resources/views/modpack/build/create.blade.php b/resources/views/modpack/build/create.blade.php index c672968e..23852733 100644 --- a/resources/views/modpack/build/create.blade.php +++ b/resources/views/modpack/build/create.blade.php @@ -19,6 +19,7 @@
@endif + @csrf

Create Build

diff --git a/resources/views/modpack/build/delete.blade.php b/resources/views/modpack/build/delete.blade.php index c591d35c..03acd2a2 100644 --- a/resources/views/modpack/build/delete.blade.php +++ b/resources/views/modpack/build/delete.blade.php @@ -12,6 +12,7 @@

Are you sure you want to delete this build? This action is irreversible!

+ @csrf Go Back diff --git a/resources/views/modpack/build/edit.blade.php b/resources/views/modpack/build/edit.blade.php index 7e25af07..6ee12ca3 100644 --- a/resources/views/modpack/build/edit.blade.php +++ b/resources/views/modpack/build/edit.blade.php @@ -19,6 +19,7 @@
@endif + @csrf
diff --git a/resources/views/modpack/build/view.blade.php b/resources/views/modpack/build/view.blade.php index 8d808c70..d1cdb5fa 100644 --- a/resources/views/modpack/build/view.blade.php +++ b/resources/views/modpack/build/view.blade.php @@ -57,6 +57,7 @@ accept-charset="UTF-8" class="mod-add" > + @csrf @@ -113,6 +114,7 @@ class="mod-add" style="margin-bottom: 0" class="mod-version" > + @csrf + @csrf @endif + @csrf
diff --git a/resources/views/modpack/delete.blade.php b/resources/views/modpack/delete.blade.php index 52ec4d34..83407e30 100644 --- a/resources/views/modpack/delete.blade.php +++ b/resources/views/modpack/delete.blade.php @@ -15,6 +15,7 @@ them from your API. Users with this modpack already on their launcher will be able to continue to use it in "Offline Mode."

+ @csrf Go Back diff --git a/resources/views/modpack/edit.blade.php b/resources/views/modpack/edit.blade.php index 3902d266..d3a7dd33 100644 --- a/resources/views/modpack/edit.blade.php +++ b/resources/views/modpack/edit.blade.php @@ -19,6 +19,7 @@
@endif
+ @csrf

Modpack Management

diff --git a/resources/views/user/create.blade.php b/resources/views/user/create.blade.php index 948e04dd..a3353f69 100644 --- a/resources/views/user/create.blade.php +++ b/resources/views/user/create.blade.php @@ -19,6 +19,7 @@
@endif + @csrf
diff --git a/resources/views/user/delete.blade.php b/resources/views/user/delete.blade.php index 1529ffbf..dc046e95 100644 --- a/resources/views/user/delete.blade.php +++ b/resources/views/user/delete.blade.php @@ -20,6 +20,7 @@ this, you will no longer be able to access Solder.

@endif + @csrf Go Back diff --git a/resources/views/user/edit.blade.php b/resources/views/user/edit.blade.php index bed35a61..0bae41ee 100644 --- a/resources/views/user/edit.blade.php +++ b/resources/views/user/edit.blade.php @@ -34,6 +34,7 @@
@endif
+ @csrf