mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-17 12:43:13 +02:00
22 lines
418 B
TypeScript
22 lines
418 B
TypeScript
|
|
import { PickType } from "@nestjs/mapped-types";
|
||
|
|
import { IsEmail, IsOptional, IsString } from "class-validator";
|
||
|
|
import { UserDTO } from "src/user/dto/user.dto";
|
||
|
|
|
||
|
|
export class AuthSignInTotpDTO extends PickType(UserDTO, [
|
||
|
|
"password",
|
||
|
|
] as const) {
|
||
|
|
@IsEmail()
|
||
|
|
@IsOptional()
|
||
|
|
email: string;
|
||
|
|
|
||
|
|
@IsString()
|
||
|
|
@IsOptional()
|
||
|
|
username: string;
|
||
|
|
|
||
|
|
@IsString()
|
||
|
|
totp: string;
|
||
|
|
|
||
|
|
@IsString()
|
||
|
|
loginToken: string;
|
||
|
|
}
|