coments
This commit is contained in:
@@ -2,10 +2,11 @@ import { IsEmail, IsNotEmpty, IsString, MinLength } from "class-validator";
|
||||
|
||||
export class CreateUserDto{
|
||||
@IsString()
|
||||
readonly name: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@MinLength(10)
|
||||
readonly password: string;
|
||||
name: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user