Skip to content

Commit 9c5c5a9

Browse files
committed
fix: chain filter does not update last_active
1 parent a0fcea8 commit 9c5c5a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Filters/ChainAuth.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ public function before(RequestInterface $request, $arguments = null)
5353
$chain = config('Auth')->authenticationChain;
5454

5555
foreach ($chain as $alias) {
56-
if (auth($alias)->loggedIn()) {
56+
$auth = auth($alias);
57+
58+
if ($auth->loggedIn()) {
5759
// Make sure Auth uses this Authenticator
5860
auth()->setAuthenticator($alias);
5961

62+
$authenticator = $auth->getAuthenticator();
63+
64+
if (setting('Auth.recordActiveDate')) {
65+
$authenticator->recordActiveDate();
66+
}
67+
6068
return;
6169
}
6270
}

0 commit comments

Comments
 (0)