ASP. NET Identity user registration settings, asp. netidentity
You can set this part in the IdentityConfig. cs file under the App_Start directory of the Web project.
1. Password verification Logic
Manager. PasswordValidator = newPasswordValidator
{
RequiredLength = 8, // The required password length. The default value is 6.
RequireNonLetterOrDigit = false, // whether non-numbers or letters are required
RequireDigit = true, // whether a number is required
RequireLowercase = true, // whether lowercase letters are required
RequireUppercase = false, // whether uppercase letters are required
};
2. // configure the default value for user lock
Manager. UserLockoutEnabledByDefault = true;
Manager. DefaultAccountLockoutTimeSpan = TimeSpan. FromMinutes (5); // The interval between verification failures and re-verification (minutes)
Manager. MaxFailedAccessAttemptsBeforeLockout = 5; // number of verification failures