Files
twenty/server/src/core/auth/dto/challenge.input.ts
Lucas Bordeau 795bead1bb Fix/relation picker (#546)
* FIx pickers

* Fix

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-08 18:43:41 -07:00

16 lines
304 B
TypeScript

import { ArgsType, Field } from '@nestjs/graphql';
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
@ArgsType()
export class ChallengeInput {
@Field(() => String)
@IsNotEmpty()
@IsEmail()
email: string;
@Field(() => String)
@IsNotEmpty()
@IsString()
password: string;
}