Skip to content

Bug: last_active not set when filter set to chain #1154

@LufinityLucas

Description

@LufinityLucas

PHP Version

8.2.16

CodeIgniter4 Version

4.5.4

Shield Version

1.1.0

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MariaDB 10.6.11

Did you customize Shield?

Added Shield oAuth

What happened?

When logging in, last_active is not set in the database when filter is configured 'chain' => ['except' => ['login*', 'auth/a/*', 'oauth/*', 'logout']],. When configured 'session' => ['except' => ['login*', 'auth/a/*', 'oauth/*', 'logout']], it works, but for my specific use case I need chain as I'm using both session and access token for different purposes.

Steps to Reproduce

Configure Filters.php file with e.g.,

public $globals = [
    'before' => [
        // ...
        'chain' => ['except' => ['login*', 'register', 'auth/a/*', 'logout']],
    ],
    // ...
];

Expected Output

last_active to be set in the database.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions