From 2b7d3c0a8a3e527fc1f7f86795731d5ac77eda49 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 21 Jan 2025 18:44:06 +0100 Subject: [PATCH] fix: wrong TOTP validation for password --- backend/src/auth/dto/enableTotp.dto.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; +}