How do I define the password rules for Identity in ASP.NET MVC
By FoxLearn 2/18/2024 1:31:23 AM 181
This post shows you how to define the password rules for Identity in ASP.NET MVC
As you all know, the default Identity provider provided in ASP.NET MVC has very strict password rules by default, such as requiring lowercase character, uppercase character, non-alphanumeric character and a number.
To config the password rules you need open IdentityConfig.cs and then configure the password rules that you want.
// Configure validation logic for passwords manager.PasswordValidator = new PasswordValidator { RequiredLength = 3, RequireNonLetterOrDigit = false, RequireDigit = false, RequireLowercase = false, RequireUppercase = false };
You can change login password length, digit, lowercase, upercase...
- How to publish ASP.NET website on Internet
- How to fix 'This program is blocked by group policy'
- Getting Started with ASP.NET Core 3.0
- How to fix 'Authorization in ASP.NET Core' with 401 Unauthorized
- The name 'Session' does not exist in the current context
- How to create a Toast Notifications in ASP.NET Core
- How to fix Font Awesome WebFont woff2 not working BundleConfig
- How to Minify HTML using WebMarkupMin in ASP.NET Core
Categories
Popular Posts
How to download redis for Windows
10/29/2024
How to sign a powershell script
10/03/2024