mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
feat: access tokens user management UI (#3587)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com> Co-authored-by: David <hi@davwheat.dev>
This commit is contained in:
@@ -49,7 +49,10 @@ trait BuildsHttpRequests
|
||||
'type' => 'session'
|
||||
]);
|
||||
|
||||
return $req->withAddedHeader('Authorization', "Token {$token}");
|
||||
return $req
|
||||
->withAddedHeader('Authorization', "Token {$token}")
|
||||
// We save the token as an attribute so that we can retrieve it for test purposes.
|
||||
->withAttribute('tests_token', $token);
|
||||
}
|
||||
|
||||
protected function requestWithCookiesFrom(Request $req, Response $previous): Request
|
||||
|
Reference in New Issue
Block a user