diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 06676b4..dd1272a 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -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 { + delete body.password; const { id } = await this.citizenService.create(body); await this.authService.register(body.username, password, id); }