mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:50:38 +08: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:
parent
80b804b297
commit
ca77747463
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user