mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Update lastSeenAt
when authenticating via API (#3058)
Fixes https://github.com/flarum/core/issues/3025, title says it all.
This commit is contained in:
committed by
GitHub
parent
581d9517db
commit
da94488f7b
@@ -47,6 +47,8 @@ class AuthenticateWithHeader implements Middleware
|
||||
}
|
||||
|
||||
if (isset($actor)) {
|
||||
$actor->updateLastSeen()->save();
|
||||
|
||||
$request = RequestUtil::withActor($request, $actor);
|
||||
$request = $request->withAttribute('bypassCsrfToken', true);
|
||||
$request = $request->withoutAttribute('session');
|
||||
|
Reference in New Issue
Block a user