forked from projects/fipamo
Hot fix for page creation (token not being share in create mode)
This commit is contained in:
commit
815ebf58f7
2 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,8 @@ class PagesAPI
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$result = [
|
$result = [
|
||||||
"message" => "Form token, auth failed. Uh oh.",
|
"message" =>
|
||||||
|
"Unneccessary key found. Post not authorized, slick.",
|
||||||
"type" => "TASK_FORM_AUTH",
|
"type" => "TASK_FORM_AUTH",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,7 @@ class DashControl
|
||||||
} else {
|
} else {
|
||||||
$pageOptions = [
|
$pageOptions = [
|
||||||
"title" => "Fipamo | Create Page",
|
"title" => "Fipamo | Create Page",
|
||||||
|
"token" => Session::get("form_token"),
|
||||||
"mode" => $mode,
|
"mode" => $mode,
|
||||||
"status" => Session::active(),
|
"status" => Session::active(),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue