AuthDTO update

This commit is contained in:
Mathis H (Avnyr) 2024-02-27 16:44:20 +01:00
parent 7f1440ed65
commit 5619ebfc17
Signed by: Mathis
GPG Key ID: 9B3849C18C153DDD

View File

@ -1,4 +1,16 @@
export interface AuthDto { import { IsEmail, IsNotEmpty, IsStrongPassword } from "class-validator";
email: string,
password: string export class AuthDto {
@IsEmail()
@IsNotEmpty()
email: string;
@IsStrongPassword({
minLength: 8,
minLowercase: 1,
minUppercase: 1,
minNumbers: 1,
minSymbols: 1,
})
password: string;
} }