diff --git a/backend/services/auth-service/src/interface/http/dto/login.dto.ts b/backend/services/auth-service/src/interface/http/dto/login.dto.ts index c9d6f82..72a6db8 100644 --- a/backend/services/auth-service/src/interface/http/dto/login.dto.ts +++ b/backend/services/auth-service/src/interface/http/dto/login.dto.ts @@ -1,4 +1,4 @@ -import { IsString, MinLength } from 'class-validator'; +import { IsString, IsOptional, MinLength } from 'class-validator'; import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class LoginDto { @@ -12,7 +12,12 @@ export class LoginDto { password: string; @ApiPropertyOptional({ description: 'Device info for token tracking' }) + @IsOptional() @IsString() - @MinLength(0) deviceInfo?: string; + + @ApiPropertyOptional({ description: 'Client IP address' }) + @IsOptional() + @IsString() + ipAddress?: string; }