Change createTokenForUser signature

user is now used instead of username

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2021-10-13 22:59:51 +02:00 committed by David Mehren
parent 40103cb397
commit f4799c5ebe
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 8 additions and 24 deletions

View file

@ -51,11 +51,7 @@ export class TokensController {
@Body('validUntil') validUntil: TimestampMillis,
@RequestUser() user: User,
): Promise<AuthTokenWithSecretDto> {
return await this.authService.createTokenForUser(
user.username,
label,
validUntil,
);
return await this.authService.createTokenForUser(user, label, validUntil);
}
@Delete('/:keyId')