fileserver/dto/src/requests/auth.ts

15 lines
291 B
TypeScript
Raw Normal View History

2022-08-25 11:39:58 +00:00
import { BaseRequest } from './base';
import { IsEmail, IsNotEmpty } from 'class-validator';
export class AuthSignUpRequest extends BaseRequest {
@IsEmail()
username: string;
@IsNotEmpty()
password: string;
}
export class AuthLoginRequest extends AuthSignUpRequest {
otp?: string;
}