mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
Update BuildsHttpRequests for new token system
This commit is contained in:
@@ -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}");
|
||||
|
Reference in New Issue
Block a user