From dadfd316e6739d03b8f5f67163c1bd43a79d56ea Mon Sep 17 00:00:00 2001 From: Francis Duvivier Date: Wed, 4 Dec 2024 19:22:19 +0100 Subject: [PATCH] Remove insertUser api Since we wer currently just inserting the unsalted password into the DB. --- src/controllers/private-rest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/private-rest.ts b/src/controllers/private-rest.ts index 0e68a5c..3d50bc0 100644 --- a/src/controllers/private-rest.ts +++ b/src/controllers/private-rest.ts @@ -30,7 +30,8 @@ export class PrivateRestController { @Path() userId: DBUser["id"], @Body() props: UserProps ): Promise { - await this.badgeHubData.insertUser({ ...props, id: userId }); + // TODO implement with proper password handling (salting, hashing, ...) + throw new Error("Not implemented"); } /**