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
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;
|
|
}
|