login
This commit is contained in:
@@ -40,9 +40,7 @@ export class AuthController {
|
|||||||
@Body('code') code: string,
|
@Body('code') code: string,
|
||||||
@Body('client_id') clientId: string,
|
@Body('client_id') clientId: string,
|
||||||
) {
|
) {
|
||||||
const token = await this.usersService.loginWithSessionKey(code, clientId);
|
return this.usersService.loginWithSessionKey(code, clientId);
|
||||||
this.logger.log(`User logged in with code on client ${clientId}`);
|
|
||||||
return token;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export class UsersService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const token = this.createAuthToken(user, client);
|
const token = this.createAuthToken(user, client);
|
||||||
|
this.logger.log(`User logged in with code on client ${clientId}`);
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user