diff --git a/backend/src/auth/dto/enableTotp.dto.ts b/backend/src/auth/dto/enableTotp.dto.ts index dc55d3d..8116c25 100644 --- a/backend/src/auth/dto/enableTotp.dto.ts +++ b/backend/src/auth/dto/enableTotp.dto.ts @@ -1,4 +1,6 @@ -import { PickType } from "@nestjs/swagger"; -import { UserDTO } from "src/user/dto/user.dto"; +import { IsString } from "class-validator"; -export class EnableTotpDTO extends PickType(UserDTO, ["password"] as const) {} +export class EnableTotpDTO { + @IsString() + password: string; +}