How to Customize default password complexity rules in asp.net core?

Asp.net-core By Sagar Jaybhay

Asp.net core never allows you to create a simple password because it is easily crack able and also to restrict brute force attacks. Suppose you enter some simple password like abcd it will throw an error. Passwords must be at least 6 characters. Passwords must have at least one non alphanumeric character. Passwords must have at least one digit (‘0’-‘9’). Passwords must have at least one uppercase (‘A’-‘Z’). Check this link:- https://github.com/aspnet/AspNetCore/blob/master/src/Identity/Extensions.Core/src/PasswordOptions.cs So if want to change this default behavior you need to do these changes in configure service method…

Read More