File

src/admin/dto/setpass.dto.ts

Index

Properties

Properties

password
Type : string
Decorators :
@MinLength(8, {message: undefined})
@MaxLength(128, {message: undefined})
@IsNotEmpty({message: undefined})
@IsString()
user
Type : string
Decorators :
@IsString()
import { IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
import { RegisterRespEnum } from '../../utils/enums/responses/register.enum';

export class SetPassDto {
  @IsString()
  user: string;

  @MinLength(8, {
    message: RegisterRespEnum.ERR_PASSWORD_TOOSHORT,
  })
  @MaxLength(128, {
    message: RegisterRespEnum.ERR_PASSWORD_TOOLONG,
  })
  @IsNotEmpty({
    message: RegisterRespEnum.ERR_PASSWORD_INVALID,
  })
  @IsString()
  password: string;
}

results matching ""

    No results matching ""