forked from Yara724/api
Added expert field mirror flow
This commit is contained in:
10
src/common/auth/dtos/user-login.dto.ts
Normal file
10
src/common/auth/dtos/user-login.dto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { IsMobilePhone, IsNumberString, IsString } from "class-validator";
|
||||
|
||||
export class UserLoginDto {
|
||||
@IsString({ message: "Cellphone number must be string" })
|
||||
@IsMobilePhone("fa-IR")
|
||||
cellphoneNumber: string;
|
||||
|
||||
@IsNumberString()
|
||||
otp: string;
|
||||
}
|
||||
Reference in New Issue
Block a user