import { IsUsernameOrEmailConstraint } from '@/system/validators/is-username-or-email.validator';
import { IsNotEmpty, IsString, Validate } from 'class-validator';

export class LoginDto {
  @IsNotEmpty()
  @Validate(IsUsernameOrEmailConstraint)
  input: string;

  @IsNotEmpty()
  @IsString()
  password: string;
}
