From af646a893e3b66b2b868d2d0f4216362477a4fba Mon Sep 17 00:00:00 2001 From: haturatu Date: Mon, 13 Oct 2025 07:01:46 +0900 Subject: support: xsrf --- templates/account_password.html | 2 +- templates/admin.html | 2 +- templates/js/admin.js | 4 ++-- templates/login.html | 2 +- templates/php/account_password.php | 2 +- templates/php/login.php | 2 +- templates/php/register.php | 2 +- templates/register.html | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/account_password.html b/templates/account_password.html index 68fb95f..e4f1494 100644 --- a/templates/account_password.html +++ b/templates/account_password.html @@ -11,7 +11,7 @@

Change Password

- +
diff --git a/templates/admin.html b/templates/admin.html index c2f9488..6c08132 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -3,7 +3,7 @@ - + Admin Dashboard diff --git a/templates/js/admin.js b/templates/js/admin.js index 0b26e2f..fa67985 100644 --- a/templates/js/admin.js +++ b/templates/js/admin.js @@ -7,11 +7,11 @@ * @returns {Promise} */ async function fetchApi(url, options = {}) { - const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content'); + const xsrfToken = document.querySelector('meta[name="xsrf-token"]').getAttribute('content'); options.headers = { ...options.headers, - 'X-CSRF-Token': csrfToken + 'X-XSRF-Token': xsrfToken }; // Set content type for methods that have a body. diff --git a/templates/login.html b/templates/login.html index b2f847c..653a77c 100644 --- a/templates/login.html +++ b/templates/login.html @@ -10,7 +10,7 @@

Login Required

- +
diff --git a/templates/php/account_password.php b/templates/php/account_password.php index 8a1871d..a68493f 100644 --- a/templates/php/account_password.php +++ b/templates/php/account_password.php @@ -18,7 +18,7 @@

Change Password

- +
diff --git a/templates/php/login.php b/templates/php/login.php index c4644ef..67b075e 100644 --- a/templates/php/login.php +++ b/templates/php/login.php @@ -17,7 +17,7 @@

Login Required

- +
diff --git a/templates/php/register.php b/templates/php/register.php index 31edf25..f05e89c 100644 --- a/templates/php/register.php +++ b/templates/php/register.php @@ -17,7 +17,7 @@

Create Account

- +
diff --git a/templates/register.html b/templates/register.html index 7db7972..f46fbe0 100644 --- a/templates/register.html +++ b/templates/register.html @@ -10,7 +10,7 @@

Create Account

- +
-- cgit v1.2.3