mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
add validation for password length (#9798)
This commit is contained in:
parent
323be47e64
commit
2e6f4510dd
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue