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

iyhammad picture iyhammad  Â·  3Comments

wocar picture wocar  Â·  3Comments

jzhouw picture jzhouw  Â·  3Comments

hikalkan picture hikalkan  Â·  3Comments

satishsomani picture satishsomani  Â·  3Comments