merge Sam, I hope it doesn't EXPLODE
This commit is contained in:
@@ -26,4 +26,4 @@ import { ConfigService } from '@nestjs/config';
|
||||
controllers: [AuthController],
|
||||
exports: [AuthService],
|
||||
})
|
||||
export class AuthModule {}
|
||||
export class AuthModule {}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { IsEmail, IsNotEmpty, IsString, MinLength } from "class-validator";
|
||||
|
||||
export class CreateUserDto{
|
||||
@IsString()
|
||||
readonly name: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsEmail()
|
||||
readonly email: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@MinLength(10)
|
||||
readonly password: string;
|
||||
|
||||
@IsString()
|
||||
readonly phone: string;
|
||||
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { UsersService } from './users.service';
|
||||
|
||||
Reference in New Issue
Block a user