Open Closed

Change password rules #3203


User avatar
0
manuel42 created
  • ABP Framework version: 5.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: None
  • Steps to reproduce the issue:" Start the DBMigrator and a add a user with password length 5 signs

Hello, I have tried to change the default password settings.

In my SettingDefinitionProvider class I have added the SettingsDefiniton

  context
        .Add(
                new SettingDefinition("Abp.Identity.Password.RequiredLength"),
                new SettingDefinition("Abp.Identity.Password.RequiredUniqueChars"),
                new SettingDefinition("Abp.Identity.Password.RequireNonAlphanumeric"),
                new SettingDefinition("Abp.Identity.Password.RequireLowercase"),
                new SettingDefinition("Abp.Identity.Password.RequireUppercase"),
                new SettingDefinition("Abp.Identity.Password.RequireDigit")
            );

And in my appsettings.json I have tried to set the values

    "Settings": {
    "Abp.Identity.Password.RequiredLength": "5",
    "Abp.Identity.Password.RequiredUniqueChars": "0",
    "Abp.Identity.Password.RequireNonAlphanumeric": "false",
    "Abp.Identity.Password.RequireLowercase": "false",
    "Abp.Identity.Password.RequireUppercase": "false",
    "Abp.Identity.Password.RequireDigit": "true"
    }

But it doesnt work the default vaules are the same. What I am doing wrong or what should I do ?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    These settings are defined by the Identity module.

    Why not just use it?

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15