Yield generated for 82800a30-2dfc-438c-9ef3-f37935d3f4e3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
350 B

import { IsEmail, MinLength } from 'class-validator';
import { ApiModelProperty } from '@nestjs/swagger';
export class TokenDto {
token: string;
}
export class LoginDto {
@MinLength(1)
@IsEmail()
@ApiModelProperty({ example: 'foo@bar.fr' })
email: string;
@MinLength(1)
@ApiModelProperty({ example: 'azerty' })
password: string;
}