I want to read the Identity PasswordOptions
that are configured in Startup.cs
from an MVC Controller
. My PasswordOptions
is configured like this:
services.AddIdentity<ApplicationUser, IdentityRole>(config => {
config.Password.RequireDigit = true;
config.Password.RequiredLength = 8;
config.Password.RequireNonAlphanumeric = true;
});
How do I then read the RequireDigit
, PasswordLength
, and RequireNonAlphanumeric
properties in a Controller
or elsewhere in the app?
Using ASP.NET Core 1.0.1.