refactor(register-dto): rename displayname -> displayName

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-02-14 11:12:35 +01:00
parent 6f1bdcbaa5
commit 64b16c831e
4 changed files with 12 additions and 12 deletions

View file

@ -47,7 +47,7 @@ export class AuthController {
async registerUser(@Body() registerDto: RegisterDto): Promise<void> {
const user = await this.usersService.createUser(
registerDto.username,
registerDto.displayname,
registerDto.displayName,
);
// ToDo: Figure out how to rollback user if anything with this calls goes wrong
await this.identityService.createLocalIdentity(user, registerDto.password);