diff --git a/api/src/dtos/users/user-create.dto.ts b/api/src/dtos/users/user-create.dto.ts index c8d726505d..e746e30067 100644 --- a/api/src/dtos/users/user-create.dto.ts +++ b/api/src/dtos/users/user-create.dto.ts @@ -47,11 +47,11 @@ export class UserCreate extends OmitType(UserUpdate, [ email: string; @Expose() - @ApiProperty() + @ApiPropertyOptional() @IsEmail({}, { groups: [ValidationsGroupsEnum.default] }) @Match('email', { groups: [ValidationsGroupsEnum.default] }) @EnforceLowerCase() - emailConfirmation: string; + emailConfirmation?: string; @Expose() @Type(() => IdDTO) diff --git a/sites/public/src/components/account/SignUpBenefits.tsx b/sites/public/src/components/account/SignUpBenefits.tsx index 070292fd6e..7b18d551fb 100644 --- a/sites/public/src/components/account/SignUpBenefits.tsx +++ b/sites/public/src/components/account/SignUpBenefits.tsx @@ -17,7 +17,7 @@ const SignUpBenefits = (props: SignUpBenefitsProps) => { return (