Files
Klc_backend/src/modules/auth/dto/login.dto.ts
Akshay Mayekar 28af27a15f first commit
2025-10-15 16:09:28 +05:30

22 lines
416 B
TypeScript

import { IsEmail, IsString, MinLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class LoginDto {
@ApiProperty({
description: 'User email address',
example: 'user@example.com',
})
@IsEmail()
email: string;
@ApiProperty({
description: 'User password',
example: 'password123',
minLength: 6,
})
@IsString()
@MinLength(6)
password: string;
}