mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:22:41 +08:00
Update BuildsHttpRequests for new token system
This commit is contained in:
parent
e8f3d23ded
commit
dd6897cb6f
@ -45,7 +45,7 @@ trait BuildsHttpRequests
|
||||
'user_id' => $userId,
|
||||
'created_at' => Carbon::now()->toDateTimeString(),
|
||||
'last_activity_at' => Carbon::now()->toDateTimeString(),
|
||||
'lifetime_seconds' => 3600
|
||||
'type' => 'session'
|
||||
]);
|
||||
|
||||
return $req->withAddedHeader('Authorization', "Token {$token}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user