How do I define the password rules for Identity in ASP.NET MVC
By FoxLearn 2/18/2024 1:31:23 AM 217
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...
- Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager'
- ASP.NET MVC Responsive Templates Free Download
- How to upload file in ASP.NET MVC
- How to Create Contact Form Flat Responsive in ASP.NET MVC
- HTTP Error 500.30 ASP.NET Core app failed to start
- How to Use IExceptionHandler in ASP.NET Core
- How to custom exception handling in ASP.NET Core
- How to check if HttpPostedFileBase is an image
Categories
Popular Posts
Spica Admin Dashboard Template
11/18/2024