Skip to content

Commit

Permalink
config(filter): register the custom filters again
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Jul 21, 2024
1 parent 9924c24 commit 31e2f47
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/Config/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use CodeIgniter\Filters\PerformanceMetrics;
use CodeIgniter\Filters\SecureHeaders;

use App\Filters\EnsureOwnership;
use App\Filters\ChainAuth;

class Filters extends BaseFilters
{
/**
Expand All @@ -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
];

/**
Expand Down Expand Up @@ -72,6 +77,14 @@ class Filters extends BaseFilters
// "honeypot",
// "csrf",
// "invalidchars",
// "auth_thru_chain" => [
// "except" => [
// "/",
// "login*",
// "register",
// "auth/a/*"
// ]
// ]
],
"after" => [
// "honeypot",
Expand Down

0 comments on commit 31e2f47

Please sign in to comment.