File

libs/dtos/src/auth/request/ResetPasswordRequest.dto.ts

Description

components: schemas: ResetBodyDto: type: object required: - newPassword - resetToken properties: newPassword: type: string resetToken: type: string

Extends

ValidateableDto

Index

Properties

Properties

newPassword
Type : string
Decorators :
@ApiProperty()
@IsStrongPassword(authConfig.isStrongPasswordOptions)
passwordResetCode
Type : string
Decorators :
@ApiProperty()
@Length(7)
Public validate
Type : function
Inherited from ValidateableDto
Defined in ValidateableDto:11
import { Length, IsStrongPassword } from 'class-validator'
import { authConfig } from '../../../../../config/auth.config'
import { ValidateableDto } from '../../generics/Validateable.dto'
import { ApiProperty } from '@nestjs/swagger'

/**
 * @openapi
 * components:
 *   schemas:
 *     ResetBodyDto:
 *       type: object
 *       required:
 *         - newPassword
 *         - resetToken
 *       properties:
 *         newPassword:
 *           type: string
 *         resetToken:
 *           type: string
 */
export class ResetPasswordRequestDto extends ValidateableDto {
  @ApiProperty()
  @IsStrongPassword(authConfig.isStrongPasswordOptions)
  newPassword!: string

  @ApiProperty()
  @Length(7)
  passwordResetCode!: string
}

results matching ""

    No results matching ""