mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
19 lines
570 B
C#
19 lines
570 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models.AccountViewModels
|
|
{
|
|
public class LoginWith2faViewModel
|
|
{
|
|
[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; }
|
|
|
|
[Display(Name = "Remember this machine")]
|
|
public bool RememberMachine { get; set; }
|
|
|
|
public bool RememberMe { get; set; }
|
|
}
|
|
}
|