Skip to content

Commit 9b7c1e2

Browse files
committed
Add TwoFactorCode to LoginRequestDto for 2FA support
Added a nullable TwoFactorCode property to the LoginRequestDto class to enable handling of two-factor authentication codes during user login. This change supports scenarios where 2FA is required for authentication.
1 parent 94cf8f2 commit 9b7c1e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/EasyExtensions.AspNetCore.Authorization/Models/Dto/LoginRequestDto.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ public record class LoginRequestDto
2222
/// </summary>
2323
[Required]
2424
public string Password { get; set; } = null!;
25+
26+
/// <summary>
27+
/// Gets or sets the two-factor authentication code provided by the user.
28+
/// </summary>
29+
public string? TwoFactorCode { get; set; }
2530
}
2631
}

0 commit comments

Comments
 (0)