feat: ( iam ) OTP-gate registration via IAM signup + set-password

This commit is contained in:
Abubeker Yasin
2026-07-04 10:10:26 +03:00
parent 077667610a
commit 1c625cfb82
8 changed files with 370 additions and 84 deletions

View File

@@ -1,6 +1,6 @@
import { IsEmail, IsString, MinLength, ValidateNested } from 'class-validator';
import { IsEmail, IsString, ValidateNested } from 'class-validator';
import { Type } from 'class-transformer';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { ApiProperty } from '@nestjs/swagger';
export class NameDto {
@ApiProperty({ example: 'ቀለሙ ቀጸላ' })
@@ -29,15 +29,16 @@ export class RegisterDto {
@ValidateNested()
@Type(() => NameDto)
name: NameDto;
}
@ApiProperty({ example: 'SecurePass123', minLength: 8, format: 'password' })
@IsString()
@MinLength(8)
password: string;
export class ResendRegistrationCodeDto {
@ApiProperty({ example: 'kelemu@email.com' })
@IsEmail()
email: string;
@ApiProperty({ example: 'SecurePass123', format: 'password' })
@ApiProperty({ example: '+251912345678' })
@IsString()
confirmPassword: string;
phoneNumber: string;
}
export class LoginDto {