diff --git a/backend/services/auth-service/src/api/controllers/trade-password.controller.ts b/backend/services/auth-service/src/api/controllers/trade-password.controller.ts index 05c372c2..278ab1f7 100644 --- a/backend/services/auth-service/src/api/controllers/trade-password.controller.ts +++ b/backend/services/auth-service/src/api/controllers/trade-password.controller.ts @@ -7,22 +7,35 @@ import { HttpStatus, UseGuards, } from '@nestjs/common'; +import { IsString, IsNotEmpty } from 'class-validator'; import { ThrottlerGuard } from '@nestjs/throttler'; import { TradePasswordService } from '@/application/services/trade-password.service'; import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard'; import { CurrentUser } from '@/shared/decorators/current-user.decorator'; class SetTradePasswordDto { + @IsString() + @IsNotEmpty() loginPassword: string; + + @IsString() + @IsNotEmpty() tradePassword: string; } class ChangeTradePasswordDto { + @IsString() + @IsNotEmpty() oldTradePassword: string; + + @IsString() + @IsNotEmpty() newTradePassword: string; } class VerifyTradePasswordDto { + @IsString() + @IsNotEmpty() tradePassword: string; }