Files
serverMontime/src/modules/auth/dto/login-password.dto.ts
T

16 lines
428 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsString, MaxLength, MinLength } from 'class-validator';
import { IsIranMobile } from '../../../common/decorators/is-iran-mobile.decorator';
export class LoginPasswordDto {
@ApiProperty({ example: '09122222222' })
@IsIranMobile()
mobile!: string;
@ApiProperty({ example: 'mySecurePass123' })
@IsString()
@MinLength(1)
@MaxLength(72)
password!: string;
}