mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 13:28:11 +00:00
feat(auth): add post-Fayda password setup flow
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { IsEmail, IsString, MinLength, ValidateNested } from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class NameDto {
|
||||
@ApiProperty({ example: 'ቀለሙ ቀጸላ' })
|
||||
@@ -49,3 +49,19 @@ export class LoginDto {
|
||||
@IsString()
|
||||
password: string;
|
||||
}
|
||||
|
||||
export class FaydaRequestPasswordSetupDto {
|
||||
@ApiProperty({ example: '+251911234567', description: 'Phone number of the Fayda-verified account' })
|
||||
@IsString()
|
||||
phoneNumber: string;
|
||||
}
|
||||
|
||||
export class FaydaVerifyAndLoginDto {
|
||||
@ApiProperty({ example: '+251911234567' })
|
||||
@IsString()
|
||||
phoneNumber: string;
|
||||
|
||||
@ApiProperty({ example: '123456', description: '6-digit OTP received via SMS' })
|
||||
@IsString()
|
||||
otp: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user