parent
435083a682
commit
86ce21487a
3 changed files with 25 additions and 10 deletions
@ -0,0 +1,15 @@ |
|||||||
|
import { IsString, IsEmail, IsEnum, IsNotEmpty, IsOptional, Matches } from "class-validator"; |
||||||
|
|
||||||
|
export class LoginUserDto { |
||||||
|
@IsEmail({}, { message: "Invalid email format" }) |
||||||
|
email: string; |
||||||
|
|
||||||
|
@IsString() |
||||||
|
@IsNotEmpty({ message: "Password is required" }) |
||||||
|
password: string; |
||||||
|
|
||||||
|
@IsString() |
||||||
|
@IsNotEmpty({ message: "Username is required" }) |
||||||
|
username: string; |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue