The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoginWith2faViewModel.cs 568B

123456789101112131415161718
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Teknik.IdentityServer.ViewModels
  3. {
  4. public class LoginWith2faViewModel
  5. {
  6. [Required]
  7. [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
  8. [DataType(DataType.Text)]
  9. [Display(Name = "Authenticator code")]
  10. public string TwoFactorCode { get; set; }
  11. [Display(Name = "Remember this machine")]
  12. public bool RememberMachine { get; set; }
  13. public bool RememberMe { get; set; }
  14. }
  15. }