Welcome Guest, Not a member yet? Register   Sign In
Shield validation question
#5

Thanks janroz, disabling "recordActiveDate" actually works.

But I wonder if we are the only ones with this problem, or there is something wrong with this piece of code in vendor/codeigniter4/shield/src/Authentication/Authenticators/Session.php

PHP Code:
    /**
    * Updates the user's last active date.
    */
    public function recordActiveDate(): void
    
{
        if (!$this->user instanceof User)
        {
            throw new InvalidArgumentException(
                __METHOD__ '() requires logged in user before calling.'
            );
        }

        $this->user->last_active Time::now();

        $this->provider->save($this->user);
    

Exactly on this line:

PHP Code:
$this->provider->save($this->user); 
Reply


Messages In This Thread
Shield validation question - by janroz - 07-25-2022, 05:01 AM
RE: Shield validation question - by kenjis - 07-25-2022, 06:15 PM
RE: Shield validation question - by chronic - 08-14-2022, 02:52 AM
RE: Shield validation question - by janroz - 08-14-2022, 04:41 AM
RE: Shield validation question - by chronic - 08-14-2022, 08:38 AM
RE: Shield validation question - by kenjis - 08-14-2022, 08:32 PM
RE: Shield validation question - by chronic - 08-15-2022, 02:16 AM
RE: Shield validation question - by kenjis - 08-15-2022, 02:20 AM
RE: Shield validation question - by chronic - 08-15-2022, 02:52 AM
RE: Shield validation question - by kenjis - 08-15-2022, 03:47 AM
RE: Shield validation question - by chronic - 08-15-2022, 08:10 AM
RE: Shield validation question - by kenjis - 08-15-2022, 02:57 PM
RE: Shield validation question - by chronic - 08-16-2022, 12:48 AM
RE: Shield validation question - by RedWd - 03-23-2024, 04:47 AM
RE: Shield validation question - by Codinglander - 03-27-2024, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB