src/admin/dto/setpass.dto.ts
Properties |
| password |
Type : string
|
Decorators :
@MinLength(8, {message: undefined})
|
|
Defined in src/admin/dto/setpass.dto.ts:18
|
| user |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/admin/dto/setpass.dto.ts:6
|
import { IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
import { RegisterRespEnum } from '../../utils/enums/responses/register.enum';
export class SetPassDto {
@IsString()
user: string;
@MinLength(8, {
message: RegisterRespEnum.ERR_PASSWORD_TOOSHORT,
})
@MaxLength(128, {
message: RegisterRespEnum.ERR_PASSWORD_TOOLONG,
})
@IsNotEmpty({
message: RegisterRespEnum.ERR_PASSWORD_INVALID,
})
@IsString()
password: string;
}