using System.ComponentModel.DataAnnotations; namespace BTCPayServer.Models.AccountViewModels { public class LoginWithAuthenticatorModel { [Required] [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Text)] [Display(Name = "Authenticator code")] public string TwoFactorCode { get; set; } } }