1
0
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:
Sami Mazouz
2023-02-21 14:14:53 +01:00
committed by GitHub
parent ea7b270f47
commit 9342903d68
45 changed files with 1821 additions and 5 deletions

View File

@@ -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