Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
fix(auth): missing password
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicGendre committed Jan 13, 2022
1 parent 7f24c54 commit d09372b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ export class AuthController {
@Post('/register')
@HttpCode(HttpStatus.CREATED)
public async register(
@Body() body: CreateUserDto,
//FIXME
@Body() body: CreateUserDto & { password: string },
@Body('password') password: string,
): Promise<void> {
delete body.password;
const { id } = await this.citizenService.create(body);
await this.authService.register(body.username, password, id);
}
Expand Down

0 comments on commit d09372b

Please sign in to comment.