diff options
Diffstat (limited to 'server/controllers/users.controller.ts')
-rw-r--r-- | server/controllers/users.controller.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/users.controller.ts b/server/controllers/users.controller.ts index 652b5b6..82d6215 100644 --- a/server/controllers/users.controller.ts +++ b/server/controllers/users.controller.ts @@ -35,6 +35,7 @@ export class UsersController { @Get('/users/me') async getCurrentUser(@JwtBody() jwtBody: JwtBodyDto) { const user = await this.usersService.find(jwtBody.userId); + delete user.passwordHash; return { user }; } |