Added tests for token API authentication

This commit is contained in:
Jan Böhmer 2023-10-02 23:36:14 +02:00
parent 42356cc2a3
commit c7a02ae870
4 changed files with 204 additions and 0 deletions

View file

@ -1023,6 +1023,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
*/
public function addApiToken(ApiToken $apiToken): void
{
$apiToken->setUser($this);
$this->api_tokens->add($apiToken);
}