File

src/auth/dto/login.dto.ts

Index

Properties

Properties

captcha
Type : string
Decorators :
@IsString()
password
Type : string
Decorators :
@IsNotEmpty({message: undefined})
rememberMe
Type : boolean
Decorators :
@IsOptional()
username
Type : string
Decorators :
@IsNotEmpty({message: undefined})
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { RegisterRespEnum } from '../../utils/enums/responses/register.enum';

export default class LoginDto {
  @IsNotEmpty({
    message: RegisterRespEnum.ERR_USERNAME_INVALID,
  })
  username: string;
  @IsNotEmpty({
    message: RegisterRespEnum.ERR_PASSWORD_INVALID,
  })
  password: string;
  @IsOptional()
  rememberMe: boolean;
  @IsString()
  captcha: string;
}

results matching ""

    No results matching ""