diff --git a/NuGetPackageVerifier.json b/NuGetPackageVerifier.json index bcd2915988..63a774a555 100644 --- a/NuGetPackageVerifier.json +++ b/NuGetPackageVerifier.json @@ -7,7 +7,6 @@ "Microsoft.AspNetCore.Identity.UI": { "Exclusions": { "DOC_MISSING": { - "lib/netstandard2.0/Microsoft.AspNetCore.Identity.UI.dll": "This is a library with packaged UI", "lib/netstandard2.0/Microsoft.AspNetCore.Identity.UI.Views.V3.dll": "This assembly is generated and contains precompiled razor pages", "lib/netstandard2.0/Microsoft.AspNetCore.Identity.UI.Views.V4.dll": "This assembly is generated and contains precompiled razor pages" } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs index a37f231f4d..1d03c6e02d 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs @@ -6,8 +6,16 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class AccessDeniedModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs index d17ee0c14d..2579c5a17b 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs @@ -10,10 +10,18 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ConfirmEmailModel<>))] public abstract class ConfirmEmailModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string userId, string code) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs index b2f08555c5..f8313136f7 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs @@ -14,33 +14,77 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ExternalLoginModel<>))] public class ExternalLoginModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ProviderDisplayName { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string ErrorMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnPost(string provider, string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetCallbackAsync(string returnUrl = null, string remoteError = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostConfirmationAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs index 845b73356f..3ed080fa9f 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs @@ -13,20 +13,40 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ForgotPasswordModel<>))] public abstract class ForgotPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs index a9d3f51d93..d6c87e0764 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs @@ -7,9 +7,17 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class ForgotPasswordConfirmation : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs index e1c9ff2d68..e5b8661fcd 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs @@ -7,9 +7,17 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class LockoutModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs index 245e3a5714..da953fa960 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs @@ -15,36 +15,80 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginModel<>))] public abstract class LoginModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList ExternalLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string ErrorMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Display(Name = "Remember me?")] public bool RememberMe { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs index 51974c5816..4b64207a87 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs @@ -12,31 +12,67 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginWith2faModel<>))] public abstract class LoginWith2faModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool RememberMe { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Text)] [Display(Name = "Authenticator code")] public string TwoFactorCode { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Display(Name = "Remember this machine")] public bool RememberMachine { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(bool rememberMe, string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(bool rememberMe, string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs index ae1ba2307a..db2b4ffacb 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs @@ -12,17 +12,37 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginWithRecoveryCodeModel<>))] public abstract class LoginWithRecoveryCodeModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] [Required] [DataType(DataType.Text)] @@ -30,12 +50,20 @@ namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal public string RecoveryCode { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } - internal class LoginWithRecoveryCodeModel : LoginWithRecoveryCodeModel where TUser: class + internal class LoginWithRecoveryCodeModel : LoginWithRecoveryCodeModel where TUser : class { private readonly SignInManager _signInManager; private readonly UserManager _userManager; diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs index f1aad95a41..a8091be361 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs @@ -11,14 +11,26 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LogoutModel<>))] public abstract class LogoutModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPost(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs index 5c6ea2c3ea..a558580bad 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs @@ -9,38 +9,73 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ChangePasswordModel<>))] public abstract class ChangePasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] [Display(Name = "Current password")] public string OldPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs index b43b72fd1a..24e5a1a4e8 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs @@ -9,29 +9,56 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(DeletePersonalDataModel<>))] public abstract class DeletePersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] public string Password { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool RequirePassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } - internal class DeletePersonalDataModel : DeletePersonalDataModel where TUser: class + internal class DeletePersonalDataModel : DeletePersonalDataModel where TUser : class { private readonly UserManager _userManager; private readonly SignInManager _signInManager; diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs index 58c6b6956c..f12c23038f 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs @@ -8,16 +8,31 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(Disable2faModel<>))] public abstract class Disable2faModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs index c2ef3137bd..5152d01e35 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs @@ -12,13 +12,24 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(DownloadPersonalDataModel<>))] public abstract class DownloadPersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs index 1d59bed330..e086540e59 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs @@ -12,26 +12,57 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(EnableAuthenticatorModel<>))] public class EnableAuthenticatorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string SharedKey { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string AuthenticatorUri { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Text)] @@ -39,8 +70,16 @@ namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal public string Code { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs index 9f75191022..710947fa9a 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs @@ -11,26 +11,61 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ExternalLoginsModel<>))] public abstract class ExternalLoginsModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList CurrentLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList OtherLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool ShowRemoveButton { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostRemoveLoginAsync(string loginProvider, string providerKey) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostLinkLoginAsync(string provider) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetLinkLoginCallbackAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs index 25b0a85676..d33ff2e3a3 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs @@ -9,19 +9,38 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(GenerateRecoveryCodesModel<>))] public abstract class GenerateRecoveryCodesModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs index 063674a448..d536d587e1 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs @@ -10,36 +10,79 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(IndexModel<>))] public abstract class IndexModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string Username { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool IsEmailConfirmed { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Phone] [Display(Name = "Phone number")] public string PhoneNumber { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostSendVerificationEmailAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs index 1504e95111..e449a0221c 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs @@ -5,38 +5,101 @@ using System; using Microsoft.AspNetCore.Mvc.Rendering; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static class ManageNavPages { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string Index => "Index"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ChangePassword => "ChangePassword"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DownloadPersonalData => "DownloadPersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DeletePersonalData => "DeletePersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ExternalLogins => "ExternalLogins"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PersonalData => "PersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string TwoFactorAuthentication => "TwoFactorAuthentication"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string IndexNavClass(ViewContext viewContext) => PageNavClass(viewContext, Index); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ChangePasswordNavClass(ViewContext viewContext) => PageNavClass(viewContext, ChangePassword); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DownloadPersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, DownloadPersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DeletePersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, DeletePersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ExternalLoginsNavClass(ViewContext viewContext) => PageNavClass(viewContext, ExternalLogins); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, PersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string TwoFactorAuthenticationNavClass(ViewContext viewContext) => PageNavClass(viewContext, TwoFactorAuthentication); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PageNavClass(ViewContext viewContext, string page) { var activePage = viewContext.ViewData["ActivePage"] as string diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs index b407c59261..5bd3a9e067 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs @@ -8,11 +8,18 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(PersonalDataModel<>))] public abstract class PersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs index cc97245841..213a016a02 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs @@ -10,14 +10,30 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ResetAuthenticatorModel<>))] public abstract class ResetAuthenticatorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs index bb314b59a2..64590bbf29 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs @@ -8,33 +8,64 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(SetPasswordModel<>))] public abstract class SetPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs index 10110017ba..e6f9e455b3 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs @@ -5,16 +5,31 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class ShowRecoveryCodesModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IActionResult OnGet() { if (RecoveryCodes == null || RecoveryCodes.Length == 0) diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs index 9690683989..3c223a53ff 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs @@ -10,25 +10,56 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(TwoFactorAuthenticationModel<>))] public abstract class TwoFactorAuthenticationModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool HasAuthenticator { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public int RecoveryCodesLeft { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public bool Is2faEnabled { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool IsMachineRemembered { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); - } internal class TwoFactorAuthenticationModel : TwoFactorAuthenticationModel where TUser : class diff --git a/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs index 4abe1ca681..4fa4f074b3 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs @@ -15,36 +15,72 @@ using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(RegisterModel<>))] public abstract class RegisterModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] [Display(Name = "Email")] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual void OnGet(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs index 6014ad9db1..848a401609 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs @@ -9,37 +9,73 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ResetPasswordModel<>))] public abstract class ResetPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] public string Code { get; set; } } + + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet(string code = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs index b715e1aa47..27b4e9a16f 100644 --- a/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs @@ -5,11 +5,18 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class ResetPasswordConfirmationModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs b/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs index fcf8a3e782..8640002c31 100644 --- a/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs @@ -7,16 +7,31 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public class ErrorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string RequestId { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; diff --git a/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs index bc52078131..64551acb35 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs @@ -4,10 +4,17 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class AccessDeniedModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs index 032a0c46d3..d0b4a7afce 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs @@ -8,12 +8,19 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ConfirmEmailModel<>))] public abstract class ConfirmEmailModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string userId, string code) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs index 5b94ec417b..5f6e720a0d 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs @@ -12,35 +12,78 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ExternalLoginModel<>))] public class ExternalLoginModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ProviderDisplayName { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string ErrorMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnPost(string provider, string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetCallbackAsync(string returnUrl = null, string remoteError = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostConfirmationAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs index faa2fbaf84..30e329bd39 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs @@ -11,22 +11,41 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ForgotPasswordModel<>))] public abstract class ForgotPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs index 2ce3751c1a..6d6a0bcb24 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs @@ -5,11 +5,18 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class ForgotPasswordConfirmation : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs index 6037661f3e..c194946fd5 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs @@ -5,11 +5,18 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class LockoutModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs index 2f55af18f6..188fc34490 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs @@ -13,38 +13,81 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginModel<>))] public abstract class LoginModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList ExternalLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string ErrorMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Display(Name = "Remember me?")] public bool RememberMe { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs index ca72ce578e..ae71b4a0a8 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs @@ -10,33 +10,68 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginWith2faModel<>))] public abstract class LoginWith2faModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool RememberMe { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Text)] [Display(Name = "Authenticator code")] public string TwoFactorCode { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Display(Name = "Remember this machine")] public bool RememberMachine { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(bool rememberMe, string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(bool rememberMe, string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs index de1c1c29aa..b3b4af95c3 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs @@ -10,19 +10,38 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LoginWithRecoveryCodeModel<>))] public abstract class LoginWithRecoveryCodeModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] [Required] [DataType(DataType.Text)] @@ -30,12 +49,20 @@ namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal public string RecoveryCode { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } - internal class LoginWithRecoveryCodeModel : LoginWithRecoveryCodeModel where TUser: class + internal class LoginWithRecoveryCodeModel : LoginWithRecoveryCodeModel where TUser : class { private readonly SignInManager _signInManager; private readonly UserManager _userManager; diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs index adcfec0f2a..a34f01f977 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs @@ -9,16 +9,27 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(LogoutModel<>))] public abstract class LogoutModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPost(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs index 214319e2d5..0efa07ba94 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs @@ -9,38 +9,73 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ChangePasswordModel<>))] public abstract class ChangePasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] [Display(Name = "Current password")] public string OldPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs index c29ee6d6c3..ea67b87a9a 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs @@ -9,29 +9,56 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(DeletePersonalDataModel<>))] public abstract class DeletePersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [DataType(DataType.Password)] public string Password { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool RequirePassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } - internal class DeletePersonalDataModel : DeletePersonalDataModel where TUser: class + internal class DeletePersonalDataModel : DeletePersonalDataModel where TUser : class { private readonly UserManager _userManager; private readonly SignInManager _signInManager; diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs index 0695c2c237..1cb5c66b5f 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs @@ -8,16 +8,31 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(Disable2faModel<>))] public abstract class Disable2faModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs index 36ea471597..8529e3b171 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs @@ -12,13 +12,24 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(DownloadPersonalDataModel<>))] public abstract class DownloadPersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs index 0087736e41..798b8a8671 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs @@ -12,26 +12,57 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(EnableAuthenticatorModel<>))] public class EnableAuthenticatorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string SharedKey { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string AuthenticatorUri { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Text)] @@ -39,8 +70,16 @@ namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal public string Code { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs index cdd03863dc..a01fdd87d2 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs @@ -11,26 +11,61 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ExternalLoginsModel<>))] public abstract class ExternalLoginsModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList CurrentLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IList OtherLogins { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool ShowRemoveButton { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostRemoveLoginAsync(string loginProvider, string providerKey) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostLinkLoginAsync(string provider) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetLinkLoginCallbackAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs index 9306e536ab..afe71d3ed1 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs @@ -9,19 +9,38 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(GenerateRecoveryCodesModel<>))] public abstract class GenerateRecoveryCodesModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs index b5a7e6910f..655bbacc72 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs @@ -10,36 +10,79 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(IndexModel<>))] public abstract class IndexModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string Username { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool IsEmailConfirmed { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Phone] [Display(Name = "Phone number")] public string PhoneNumber { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostSendVerificationEmailAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs index 5205af6b01..136aa5c7d1 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs @@ -5,38 +5,101 @@ using System; using Microsoft.AspNetCore.Mvc.Rendering; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static class ManageNavPages { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string Index => "Index"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ChangePassword => "ChangePassword"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DownloadPersonalData => "DownloadPersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DeletePersonalData => "DeletePersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ExternalLogins => "ExternalLogins"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PersonalData => "PersonalData"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string TwoFactorAuthentication => "TwoFactorAuthentication"; + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string IndexNavClass(ViewContext viewContext) => PageNavClass(viewContext, Index); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ChangePasswordNavClass(ViewContext viewContext) => PageNavClass(viewContext, ChangePassword); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DownloadPersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, DownloadPersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string DeletePersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, DeletePersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string ExternalLoginsNavClass(ViewContext viewContext) => PageNavClass(viewContext, ExternalLogins); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, PersonalData); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string TwoFactorAuthenticationNavClass(ViewContext viewContext) => PageNavClass(viewContext, TwoFactorAuthentication); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public static string PageNavClass(ViewContext viewContext, string page) { var activePage = viewContext.ViewData["ActivePage"] as string diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs index 82513245a5..a5a81b52ce 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs @@ -8,11 +8,18 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(PersonalDataModel<>))] public abstract class PersonalDataModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs index 2e404f26fa..b8463b6976 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs @@ -8,16 +8,31 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(ResetAuthenticatorModel<>))] public abstract class ResetAuthenticatorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGet() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs index 03086e1520..844f0d9a7c 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs @@ -8,33 +8,64 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(SetPasswordModel<>))] public abstract class SetPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs index 347f43bc7f..2253564939 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs @@ -5,16 +5,31 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class ShowRecoveryCodesModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string[] RecoveryCodes { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public IActionResult OnGet() { if (RecoveryCodes == null || RecoveryCodes.Length == 0) diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs index 7ae9503661..241ab40088 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs @@ -8,27 +8,57 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [IdentityDefaultUI(typeof(TwoFactorAuthenticationModel<>))] public abstract class TwoFactorAuthenticationModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool HasAuthenticator { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public int RecoveryCodesLeft { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public bool Is2faEnabled { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool IsMachineRemembered { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [TempData] public string StatusMessage { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnGetAsync() => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); - } internal class TwoFactorAuthenticationModel : TwoFactorAuthenticationModel where TUser : class diff --git a/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs index f0dd6c6006..a795faa060 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs @@ -13,38 +13,73 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(RegisterModel<>))] public abstract class RegisterModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string ReturnUrl { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] [Display(Name = "Email")] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual void OnGet(string returnUrl = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync(string returnUrl = null) => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs index 49972025d4..bbc5c7cba3 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs @@ -9,37 +9,73 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [IdentityDefaultUI(typeof(ResetPasswordModel<>))] public abstract class ResetPasswordModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [BindProperty] public InputModel Input { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public class InputModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [EmailAddress] public string Email { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] public string Password { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [Required] public string Code { get; set; } } + + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual IActionResult OnGet(string code = null) => throw new NotImplementedException(); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public virtual Task OnPostAsync() => throw new NotImplementedException(); } diff --git a/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs index cc4655a7e4..d5f694a4a2 100644 --- a/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs @@ -5,11 +5,18 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal - { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] public class ResetPasswordConfirmationModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { } diff --git a/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs b/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs index 9cb2af3290..6a47f2f7cc 100644 --- a/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs @@ -8,14 +8,30 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Internal { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// [AllowAnonymous] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public class ErrorModel : PageModel { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public string RequestId { get; set; } + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public void OnGet() { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; diff --git a/src/UI/Areas/Identity/Services/IEmailSender.cs b/src/UI/Areas/Identity/Services/IEmailSender.cs index 5cc574f258..3c66107b94 100644 --- a/src/UI/Areas/Identity/Services/IEmailSender.cs +++ b/src/UI/Areas/Identity/Services/IEmailSender.cs @@ -5,8 +5,16 @@ using System.Threading.Tasks; namespace Microsoft.AspNetCore.Identity.UI.Services { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// public interface IEmailSender { + /// + /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used + /// directly from your code. This API may change or be removed in future releases. + /// Task SendEmailAsync(string email, string subject, string htmlMessage); } } diff --git a/src/UI/IdentityBuilderUIExtensions.cs b/src/UI/IdentityBuilderUIExtensions.cs index 20e95f45d9..3434ac4d43 100644 --- a/src/UI/IdentityBuilderUIExtensions.cs +++ b/src/UI/IdentityBuilderUIExtensions.cs @@ -43,6 +43,7 @@ namespace Microsoft.AspNetCore.Identity /// can be found by the application. /// /// The . + /// The . /// The . public static IdentityBuilder AddDefaultUI( this IdentityBuilder builder, diff --git a/src/UI/Microsoft.AspNetCore.Identity.UI.csproj b/src/UI/Microsoft.AspNetCore.Identity.UI.csproj index 3a328b2f5b..7a9a0fa3ea 100644 --- a/src/UI/Microsoft.AspNetCore.Identity.UI.csproj +++ b/src/UI/Microsoft.AspNetCore.Identity.UI.csproj @@ -4,7 +4,7 @@ ASP.NET Core Identity UI is the default Razor Pages built-in UI for the ASP.NET Core Identity framework. Compiled Razor views assembly for the ASP.NET Core Identity UI package. netstandard2.0 - false + true aspnetcore;identity;membership;razorpages true Microsoft.AspNetCore.Mvc.ApplicationParts.NullApplicationPartFactory, Microsoft.AspNetCore.Mvc.Core