Files
eShopOnWeb/src/Web/ViewModels/Manage/EnableAuthenticatorViewModel.cs
Steve Smith 36066ee7f3 Fix Security Issues (#644)
* Apply fix for Microsoft Security Advisory CVE-2018-0784

* Apply fix for Microsoft Security Advisory CVE-2018-0785
2021-12-12 18:25:39 -05:00

21 lines
591 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Microsoft.eShopWeb.Web.ViewModels.Manage;
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; }
}