diff --git a/dictation_server/src/features/users/users.controller.ts b/dictation_server/src/features/users/users.controller.ts index 9f88897..034edf9 100644 --- a/dictation_server/src/features/users/users.controller.ts +++ b/dictation_server/src/features/users/users.controller.ts @@ -4,6 +4,7 @@ import { Get, HttpException, HttpStatus, + Ip, Post, Query, Req, @@ -136,6 +137,9 @@ export class UsersController { @Get() async getUsers(@Req() req: Request): Promise { const accessToken = retrieveAuthorizationToken(req); + console.log(req.ip); + console.log(req.headers['X-Forwarded-For']); + if (!accessToken) { throw new HttpException( makeErrorResponse('E000107'),