mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
21 lines
605 B
C#
21 lines
605 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
|
|
|
namespace BTCPayServer.Models.ManageViewModels
|
|
{
|
|
public class EnableAuthenticatorViewModel
|
|
{
|
|
[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; }
|
|
|
|
[BindNever]
|
|
public string SharedKey { get; set; }
|
|
|
|
[BindNever]
|
|
public string AuthenticatorUri { get; set; }
|
|
}
|
|
}
|