This commit is contained in:
2023-06-12 20:01:07 +02:00
parent edc42e3750
commit 59b4eb582e
43 changed files with 1799 additions and 245 deletions

View File

@@ -0,0 +1,10 @@
import { Length, Matches } from 'class-validator';
export class CreateUserDto {
@Length(3, 10)
login: string;
@Length(6, 20)
password: string;
@Matches(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/)
email: string;
}