diff --git a/src/Filters/ChainAuth.php b/src/Filters/ChainAuth.php index 56be2c7b0..5ef0c5a6f 100644 --- a/src/Filters/ChainAuth.php +++ b/src/Filters/ChainAuth.php @@ -53,10 +53,18 @@ public function before(RequestInterface $request, $arguments = null) $chain = config('Auth')->authenticationChain; foreach ($chain as $alias) { - if (auth($alias)->loggedIn()) { + $auth = auth($alias); + + if ($auth->loggedIn()) { // Make sure Auth uses this Authenticator auth()->setAuthenticator($alias); + $authenticator = $auth->getAuthenticator(); + + if (setting('Auth.recordActiveDate')) { + $authenticator->recordActiveDate(); + } + return; } }