From c04df813bdb2d16cbd0a816518ac4343e2339997 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/db/BadgeHubDataPostgresAdapter.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/db/BadgeHubDataPostgresAdapter.ts b/src/db/BadgeHubDataPostgresAdapter.ts index 69feb0d..9fbf7a0 100644 --- a/src/db/BadgeHubDataPostgresAdapter.ts +++ b/src/db/BadgeHubDataPostgresAdapter.ts @@ -58,10 +58,9 @@ export class BadgeHubDataPostgresAdapter implements BadgeHubDataPort { } async insertUser(user: DBInsertUser): Promise { - const { keys, values } = getInsertKeysAndValuesSql(user); - const insertQuery = sql`insert into users (${keys}) - values (${values})`; - await this.pool.query(insertQuery); + // TODO implement with proper password management + + throw new Error("Method not implemented."); } async getCategories(): Promise {