src/auth/dto/login.dto.ts
Properties |
| captcha |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/auth/dto/login.dto.ts:16
|
| password |
Type : string
|
Decorators :
@IsNotEmpty({message: undefined})
|
|
Defined in src/auth/dto/login.dto.ts:12
|
| rememberMe |
Type : boolean
|
Decorators :
@IsOptional()
|
|
Defined in src/auth/dto/login.dto.ts:14
|
| username |
Type : string
|
Decorators :
@IsNotEmpty({message: undefined})
|
|
Defined in src/auth/dto/login.dto.ts:8
|
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { RegisterRespEnum } from '../../utils/enums/responses/register.enum';
export default class LoginDto {
@IsNotEmpty({
message: RegisterRespEnum.ERR_USERNAME_INVALID,
})
username: string;
@IsNotEmpty({
message: RegisterRespEnum.ERR_PASSWORD_INVALID,
})
password: string;
@IsOptional()
rememberMe: boolean;
@IsString()
captcha: string;
}