Aspnetboilerplate: Change password policies in IdentityOptions

Created on 1 May 2019  路  3Comments  路  Source: aspnetboilerplate/aspnetboilerplate

Hi Dear

I want to change my password policies.
Ex: Minimum of password length must be 6
I tried this but it doesn't work for me
`services.AddAbpIdentity(options =>
{

                options.Password.RequireDigit = true;
                options.Password.RequiredLength = 6;
                options.Password.RequireNonAlphanumeric = false;
                options.Password.RequireUppercase = false;
                options.Password.RequireLowercase = false;
            })`

How can I fix this issue?
thanks a lot

question

Most helpful comment

The settings are used to support multi-tenancy, each tenant can configure password complexity, etc.

All 3 comments

Tnx it works.
But is not better we can configure these with IdentidOptions?

The settings are used to support multi-tenancy, each tenant can configure password complexity, etc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gardens18 picture Gardens18  路  3Comments

wocar picture wocar  路  3Comments

abolfazlmohammadiseif picture abolfazlmohammadiseif  路  3Comments

jzhouw picture jzhouw  路  3Comments

edgars-pivovarenoks picture edgars-pivovarenoks  路  3Comments