mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Added tests for token API authentication
This commit is contained in:
parent
42356cc2a3
commit
c7a02ae870
4 changed files with 204 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue