summaryrefslogtreecommitdiff
path: root/server/controllers/users.controller.ts
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-03-30 15:18:16 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-03-30 15:18:16 -0600
commitacff469ba069b6f090adfd5ed91379c9f146aa77 (patch)
treee600e951d2e88ffde9252214fe31b8042ca129aa /server/controllers/users.controller.ts
parent042e3b9862b253fb3c3e59ee628dd9e30edf7e35 (diff)
downloadlocchat-acff469ba069b6f090adfd5ed91379c9f146aa77.tar.gz
locchat-acff469ba069b6f090adfd5ed91379c9f146aa77.zip
Ability to add, remove, update radius and location of chatrooms with a leaflet
Diffstat (limited to 'server/controllers/users.controller.ts')
-rw-r--r--server/controllers/users.controller.ts1
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 };
}