modify otp

This commit is contained in:
2026-02-15 09:27:38 +03:30
parent 8a8adb0623
commit 6fd68acc81
3 changed files with 11 additions and 0 deletions
+2
View File
@@ -1,5 +1,6 @@
import { IsNotEmpty, IsString, IsMobilePhone } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
export class RequestOtpDto {
@IsNotEmpty()
@@ -10,6 +11,7 @@ export class RequestOtpDto {
@IsNotEmpty()
@IsString()
@Transform(({ value }) => value?.toLowerCase())
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
slug: string;
}
+2
View File
@@ -1,5 +1,6 @@
import { IsNotEmpty, IsString, Length, IsMobilePhone } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
export class VerifyOtpDto {
@IsNotEmpty()
@@ -16,6 +17,7 @@ export class VerifyOtpDto {
@IsNotEmpty()
@IsString()
@Transform(({ value }) => value?.toLowerCase())
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
slug: string;
}