fix: wrong TOTP validation for password

This commit is contained in:
Elias Schneider
2025-01-21 18:44:06 +01:00
parent 7fea358410
commit 2b7d3c0a8a

View File

@@ -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;
}