mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 20:44:49 -04:00
Change createTokenForUser signature
user is now used instead of username Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
40103cb397
commit
f4799c5ebe
3 changed files with 8 additions and 24 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue