forked from Ynov/ptitspas-ynov-back
login dto added
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
import { IsEmail, IsString, MinLength } from "class-validator";
|
||||||
|
|
||||||
|
export class LoginDto {
|
||||||
|
@IsEmail()
|
||||||
|
email: string;
|
||||||
|
|
||||||
|
@IsString({message: 'Le mot de passe doit etre une chaine de caracteres'})
|
||||||
|
@MinLength(8, {message: 'Le mot de passe doit contenir au moins 8 caracteres'})
|
||||||
|
password: string;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user