Files
textbee/api/src/auth/auth.dto.ts
2024-03-25 14:02:53 +03:00

40 lines
857 B
TypeScript

import { ApiProperty } from '@nestjs/swagger'
export class RegisterInputDTO {
@ApiProperty({ type: String, required: true })
name: string
@ApiProperty({ type: String, required: true })
email: string
@ApiProperty({ type: String })
primaryPhone?: string
@ApiProperty({ type: String, required: true })
password: string
}
export class LoginInputDTO {
@ApiProperty({ type: String, required: true })
email: string
@ApiProperty({ type: String, required: true })
password: string
}
export class RequestResetPasswordInputDTO {
@ApiProperty({ type: String, required: true })
email: string
}
export class ResetPasswordInputDTO {
@ApiProperty({ type: String, required: true })
email: string
@ApiProperty({ type: String, required: true })
otp: string
@ApiProperty({ type: String, required: true })
newPassword: string
}