From d6f6f771acafc5b6ffbbd7a0d5300c6adc9fa595 Mon Sep 17 00:00:00 2001 From: Ro Date: Thu, 21 Oct 2021 13:27:48 -0700 Subject: [PATCH] hot fix for page creation (token not being shared on create mode) --- brain/api/v1/PagesAPI.inc.php | 3 ++- brain/controller/DashControl.inc.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/brain/api/v1/PagesAPI.inc.php b/brain/api/v1/PagesAPI.inc.php index 79bbc8b..f2c39c1 100644 --- a/brain/api/v1/PagesAPI.inc.php +++ b/brain/api/v1/PagesAPI.inc.php @@ -144,7 +144,8 @@ class PagesAPI ); } else { $result = [ - "message" => "Form token, auth failed. Uh oh.", + "message" => + "Unneccessary key found. Post not authorized, slick.", "type" => "TASK_FORM_AUTH", ]; } diff --git a/brain/controller/DashControl.inc.php b/brain/controller/DashControl.inc.php index 436b8e2..85f6af8 100644 --- a/brain/controller/DashControl.inc.php +++ b/brain/controller/DashControl.inc.php @@ -107,6 +107,7 @@ class DashControl } else { $pageOptions = [ "title" => "Fipamo | Create Page", + "token" => Session::get("form_token"), "mode" => $mode, "status" => Session::active(), ];