login
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user