9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
import { PickType } from "@nestjs/swagger";
|
|
import { IsString } from "class-validator";
|
|
import { UserDTO } from "src/user/dto/user.dto";
|
|
|
|
export class VerifyTotpDTO extends PickType(UserDTO, ["password"] as const) {
|
|
@IsString()
|
|
code: string;
|
|
}
|