diff --git a/resources/assets/pterodactyl/scripts/bootstrap.js b/resources/assets/pterodactyl/scripts/bootstrap.js index b101f9b80..8d2009067 100644 --- a/resources/assets/pterodactyl/scripts/bootstrap.js +++ b/resources/assets/pterodactyl/scripts/bootstrap.js @@ -30,6 +30,7 @@ let token = document.head.querySelector('meta[name="csrf-token"]'); if (token) { window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; + window.X_CSRF_TOKEN = token.content; } else { console.error('CSRF token not found in document.'); } diff --git a/resources/assets/pterodactyl/scripts/components/auth/ForgotPassword.vue b/resources/assets/pterodactyl/scripts/components/auth/ForgotPassword.vue index 21d727d3b..af46c1c06 100644 --- a/resources/assets/pterodactyl/scripts/components/auth/ForgotPassword.vue +++ b/resources/assets/pterodactyl/scripts/components/auth/ForgotPassword.vue @@ -12,6 +12,7 @@
+ @@ -26,11 +27,19 @@