diff --git a/server/src/dto/app-authentication.dto.ts b/server/src/dto/app-authentication.dto.ts index e911433578..45ad35af11 100644 --- a/server/src/dto/app-authentication.dto.ts +++ b/server/src/dto/app-authentication.dto.ts @@ -1,4 +1,4 @@ -import { IsEmail, IsNotEmpty, IsOptional, IsString, IsUUID, MinLength } from 'class-validator'; +import { IsEmail, IsNotEmpty, IsOptional, IsString, IsUUID, MinLength, MaxLength } from 'class-validator'; import { lowercaseString } from 'src/helpers/utils.helper'; import { Transform } from 'class-transformer'; @@ -31,6 +31,7 @@ export class AppSignupDto { @IsString() @IsNotEmpty() @MinLength(5, { message: 'Password should contain more than 5 letters' }) + @MaxLength(100, { message: 'Password length should not be more than 100 ' }) password: string; @IsOptional()