diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentitySettingDefinitionProvider.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentitySettingDefinitionProvider.cs index 188cc4d48c..0edeacf848 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentitySettingDefinitionProvider.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentitySettingDefinitionProvider.cs @@ -8,23 +8,22 @@ namespace Volo.Abp.Identity public override void Define(ISettingDefinitionContext context) { context.Add( - new SettingDefinition(IdentitySettingNames.Password.RequiredLength, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Password.RequiredUniqueChars, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Password.RequireNonAlphanumeric, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Password.RequireLowercase, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Password.RequireUppercase, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Password.RequireDigit, null, null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequiredLength, 6.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequiredUniqueChars, 1.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequireNonAlphanumeric, true.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequireLowercase, true.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequireUppercase, true.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Password.RequireDigit, true.ToString(), null, null, true), - new SettingDefinition(IdentitySettingNames.Lockout.AllowedForNewUsers, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Lockout.LockoutDuration, null, null, null, true), - new SettingDefinition(IdentitySettingNames.Lockout.MaxFailedAccessAttempts, null, null, null, true), + new SettingDefinition(IdentitySettingNames.Lockout.AllowedForNewUsers, true.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Lockout.LockoutDuration, (5*60).ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.Lockout.MaxFailedAccessAttempts, 5.ToString(), null, null, true), - new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedEmail, null, null, null, true), - new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber, null, null, null, true), - - new SettingDefinition(IdentitySettingNames.User.IsUserNameUpdateEnabled, "true", null, null, true), - new SettingDefinition(IdentitySettingNames.User.IsEmailUpdateEnabled, "true", null, null, true) + new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedEmail, false.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber, false.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.User.IsUserNameUpdateEnabled, true.ToString(), null, null, true), + new SettingDefinition(IdentitySettingNames.User.IsEmailUpdateEnabled, true.ToString(), null, null, true) ); } }