Welcome Guest, Not a member yet? Register   Sign In
Code Modules + Filters + Routes = ERR_TOO_MANY_REDIRECTS. Where am I going wrong?
#4

I solved about 30 seconds after I hit 'Post Topic'.  Blush


In App/Config/Filters.php where I specify the filter is this:
PHP Code:
// Always applied before every request
public $globals = [
    
'before' => [
        
//'honeypot'
        // 'csrf',
        
'auth',
//...
//... 
Note the comment "Always applied before every request". I realised this was being run on the Dashboard (where it is meant to), and AGAIN on the /login page (which redirects it again...and again...and again...). Oops. I changed it to this and it works now:
PHP Code:
// Always applied before every request
public $globals = [
    
'before' => [
        
//'honeypot'
        // 'csrf',
        
'auth' => ['except' => 'login'],
//...
//... 
Reply


Messages In This Thread
RE: Code Modules + Filters + Routes = ERR_TOO_MANY_REDIRECTS. Where am I going wrong? - by ariom - 03-19-2019, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB