From e071ec46dc8da76ca7c30e013963bb6fe4dbe984 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 16 Dec 2021 08:45:55 +0100 Subject: [PATCH] Common CSRF token generation correctly --- application/core/EA_Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/EA_Controller.php b/application/core/EA_Controller.php index 05505f1e..595ccedd 100644 --- a/application/core/EA_Controller.php +++ b/application/core/EA_Controller.php @@ -99,7 +99,7 @@ class EA_Controller extends CI_Controller { js_config([ 'base_url' => config('base_url'), 'index_page' => config('index_page'), - 'csrf_token' => config('csrf_token'), + 'csrf_token' => $this->security->get_csrf_hash(), ]); } }