merge Sam, I hope it doesn't EXPLODE

This commit is contained in:
TuNombreDeUsuario
2024-06-07 13:59:53 -06:00
5 changed files with 235 additions and 630 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ import { ConfigService } from '@nestjs/config';
controllers: [AuthController],
exports: [AuthService],
})
export class AuthModule {}
export class AuthModule {}
+18
View File
@@ -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
View File
@@ -1,4 +1,3 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersService } from './users.service';