net9.0
namespace Microsoft.AspNetCore.Identity.UI.V5.Pages.Account.Internal
{
[AllowAnonymous]
public abstract class LoginWith2faModel : PageModel
{
public class InputModel
{
[DataType(DataType.Text)]
[Display(Name = "Authenticator code")]
[Required]
[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
public string! TwoFactorCode { get; set; }
}
}
}
.NET | 8.09.0 |
---|---|
Information specific to net9.0 | |
Assemblies | Microsoft.AspNetCore.Identity.UI , Version=8.0.8.0, PublicKeyToken=adb9793829ddae60 Microsoft.AspNetCore.Identity.UI , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.AspNetCore.Identity.UI net8.0 |
Platform Restrictions | The property getter is supported on all platforms. The property setter is supported on all platforms. |