From ba7a9b61d3fc4d9fc0ceb1f4af973d5e9a178c21 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Tue, 4 Dec 2018 16:54:32 +0300 Subject: [PATCH] Update AbpIdentitySettingDefinitionProvider.cs --- .../AbpIdentitySettingDefinitionProvider.cs | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) 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 d63db23c61..c5cbb16a1f 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,22 +8,24 @@ namespace Volo.Abp.Identity public override void Define(ISettingDefinitionContext context) { context.Add( - new SettingDefinition(IdentitySettingNames.Password.RequiredLength, "6"), - new SettingDefinition(IdentitySettingNames.Password.RequiredUniqueChars, "1"), - new SettingDefinition(IdentitySettingNames.Password.RequireNonAlphanumeric, "true"), - new SettingDefinition(IdentitySettingNames.Password.RequireLowercase, "true"), - new SettingDefinition(IdentitySettingNames.Password.RequireUppercase, "true"), - new SettingDefinition(IdentitySettingNames.Password.RequireDigit, "true"), - new SettingDefinition(IdentitySettingNames.Lockout.AllowedForNewUsers, "true"), - new SettingDefinition(IdentitySettingNames.Lockout.LockoutDuration, "300"), - new SettingDefinition(IdentitySettingNames.Lockout.MaxFailedAccessAttempts, "5"), + new SettingDefinition(IdentitySettingNames.Password.RequiredLength), + new SettingDefinition(IdentitySettingNames.Password.RequiredUniqueChars), + new SettingDefinition(IdentitySettingNames.Password.RequireNonAlphanumeric), + new SettingDefinition(IdentitySettingNames.Password.RequireLowercase), + new SettingDefinition(IdentitySettingNames.Password.RequireUppercase), + new SettingDefinition(IdentitySettingNames.Password.RequireDigit), - new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedEmail, "false"), - new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber, "false"), + new SettingDefinition(IdentitySettingNames.Lockout.AllowedForNewUsers), + new SettingDefinition(IdentitySettingNames.Lockout.LockoutDuration), + new SettingDefinition(IdentitySettingNames.Lockout.MaxFailedAccessAttempts), + + new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedEmail), + new SettingDefinition(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber), new SettingDefinition(IdentitySettingNames.User.IsUserNameUpdateEnabled, "true"), new SettingDefinition(IdentitySettingNames.User.IsEmailUpdateEnabled, "true") + ); } }