base con autenticacion, registro, modulo encuestas
This commit is contained in:
16
apps/api/src/features/auth/dto/validate-user.dto.ts
Normal file
16
apps/api/src/features/auth/dto/validate-user.dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString } from 'class-validator';
|
||||
|
||||
export class ValidateUserDto {
|
||||
@ApiProperty()
|
||||
@IsString({
|
||||
message: 'First name must be a string',
|
||||
})
|
||||
username: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString({
|
||||
message: 'Password must be a string',
|
||||
})
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user