net9.0
namespace Microsoft.AspNetCore.Identity.UI.V4.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; }
        }
    }
}
nuget.org
0.0 %
Reference this API
0.0 %
Get property
Upgrade Planner
0.0 %
Reference this API
0.0 %
Get property
.NET 8.09.0
.NET Core 2.2
Information specific to net9.0
Assemblies

Microsoft.AspNetCore.Identity.UI , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60

Microsoft.AspNetCore.Identity.UI , Version=8.0.10.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.Identity.UI.

Package Microsoft.AspNetCore.Identity.UI net9.0
Platform Restrictions

The property getter is supported on all platforms.

The property setter is supported on all platforms.

  • Built-in API
  • Package-provided API

10/31/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙