mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 05:09:29 +00:00
add auth
This commit is contained in:
10
src/modules/users/dto/create-user.dto.ts
Normal file
10
src/modules/users/dto/create-user.dto.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user