mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-28 00:34:55 +00:00
authentication module done
This commit is contained in:
19
libs/common/src/modules/user-otp/dtos/user-otp.dto.ts
Normal file
19
libs/common/src/modules/user-otp/dtos/user-otp.dto.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class UserOtpDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public uuid: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public email: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public otpCode: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public expiryTime: string;
|
||||
}
|
||||
Reference in New Issue
Block a user