initial commit from an older template
This commit is contained in:
16
Models/DTO/TwoFactorDTO.cs
Executable file
16
Models/DTO/TwoFactorDTO.cs
Executable file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GamificationService.Models.DTO;
|
||||
|
||||
public class TwoFactorDTO
|
||||
{
|
||||
[Required]
|
||||
public int TwoFactorProvider { get; set; }
|
||||
[StringLength(50, MinimumLength = 3, ErrorMessage = "Username must be between 3 and 50 characters")]
|
||||
public string? Username { get; set; } = null!;
|
||||
|
||||
[Required]
|
||||
[StringLength(6, MinimumLength = 6, ErrorMessage = "Code must be 6 characters long")]
|
||||
public string Code { get; set; } = null!;
|
||||
public bool RememberMe { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user