From 31e2f476b69849571e0a17812d2b18602db2e2b2 Mon Sep 17 00:00:00 2001 From: Kenneth Trecy Tobias Date: Sun, 21 Jul 2024 17:46:55 +0800 Subject: [PATCH] config(filter): register the custom filters again --- app/Config/Filters.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Config/Filters.php b/app/Config/Filters.php index b2c9622..1fd6eab 100644 --- a/app/Config/Filters.php +++ b/app/Config/Filters.php @@ -13,6 +13,9 @@ use CodeIgniter\Filters\PerformanceMetrics; use CodeIgniter\Filters\SecureHeaders; +use App\Filters\EnsureOwnership; +use App\Filters\ChainAuth; + class Filters extends BaseFilters { /** @@ -34,6 +37,8 @@ class Filters extends BaseFilters "forcehttps" => ForceHTTPS::class, "pagecache" => PageCache::class, "performance" => PerformanceMetrics::class, + "ensure_ownership" => EnsureOwnership::class, + "auth_thru_chain" => ChainAuth::class ]; /** @@ -72,6 +77,14 @@ class Filters extends BaseFilters // "honeypot", // "csrf", // "invalidchars", + // "auth_thru_chain" => [ + // "except" => [ + // "/", + // "login*", + // "register", + // "auth/a/*" + // ] + // ] ], "after" => [ // "honeypot",