AuthDTO update
This commit is contained in:
parent
7f1440ed65
commit
5619ebfc17
@ -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;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user