This commit is contained in:
Bastian Wagner
2024-08-25 20:44:28 +02:00
parent 1f853c0f0c
commit 5e53dace53
2 changed files with 2 additions and 4 deletions

View File

@@ -40,9 +40,7 @@ export class AuthController {
@Body('code') code: string,
@Body('client_id') clientId: string,
) {
const token = await this.usersService.loginWithSessionKey(code, clientId);
this.logger.log(`User logged in with code on client ${clientId}`);
return token;
return this.usersService.loginWithSessionKey(code, clientId);
}
@Get()

View File

@@ -112,7 +112,7 @@ export class UsersService {
}
const token = this.createAuthToken(user, client);
this.logger.log(`User logged in with code on client ${clientId}`);
return token;
}