2017-09-13 15:47:34 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2019-08-10 14:05:11 +09:00
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
2017-09-13 15:47:34 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.ManageViewModels
|
|
|
|
{
|
|
|
|
public class EnableAuthenticatorViewModel
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
[Required]
|
|
|
|
[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
[Display(Name = "Verification Code")]
|
|
|
|
public string Code { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2019-08-10 14:05:11 +09:00
|
|
|
[BindNever]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string SharedKey { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2019-08-10 14:05:11 +09:00
|
|
|
[BindNever]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string AuthenticatorUri { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|
|
|
|
}
|