File

src/auth/dto/codes.dto.ts

Index

Properties

Properties

code
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@IsCodeExpired()
@IsCodeValid()
@IsCodeUsed()
import {
  IsNotEmpty,
  IsNumberString,
  IsString,
  MaxLength,
  MinLength,
} from 'class-validator';
import { IsCodeExpired } from '../../common/decorators/codeexpired.decorator';
import { IsCodeValid } from '../../common/decorators/codevaild.decorator';
import { IsCodeUsed } from '../../common/decorators/codeused.decorator';

export class CodesDto {
  @IsString()
  @IsNotEmpty()
  @IsCodeExpired()
  @IsCodeValid()
  @IsCodeUsed()
  code: string;
}

results matching ""

    No results matching ""