Welcome Guest, Not a member yet? Register   Sign In
public $filters except login page
#4

It's work fine with v4.0.4

My Default Controller is Login on global I add my authenticationfilter and add except for all Login controller 'login/*' and '/'

public $aliases = [
'csrf' => \CodeIgniter\Filters\CSRF::class,
'toolbar' => \CodeIgniter\Filters\DebugToolbar::class,
'honeypot' => \CodeIgniter\Filters\Honeypot::class,
'authenticationfilter' => \App\Filters\AuthenticationFilter::class,
];

// Always applied before every request
public $globals = [
'before' => [
'authenticationfilter'=> ['except' => ['login/*', '/']],
//'honeypot'
// 'csrf',
],
'after' => [
'toolbar',
//'honeypot'
],
];
There are those who tell lies with meaning behind them and those meaning less lies!
Reply


Messages In This Thread
public $filters except login page - by cilux - 03-28-2020, 03:08 PM
RE: public $filters except login page - by arisroyo - 10-16-2020, 04:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB