Skip to content

Commit

Permalink
Remove insertUser api
Browse files Browse the repository at this point in the history
Since we wer currently just inserting the unsalted password into the DB.
  • Loading branch information
Francis Duvivier committed Dec 4, 2024
1 parent ef76ebc commit dadfd31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/private-rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export class PrivateRestController {
@Path() userId: DBUser["id"],
@Body() props: UserProps
): Promise<void> {
await this.badgeHubData.insertUser({ ...props, id: userId });
// TODO implement with proper password handling (salting, hashing, ...)
throw new Error("Not implemented");
}

/**
Expand Down

0 comments on commit dadfd31

Please sign in to comment.