Update AbpIdentitySettingDefinitionProvider.cs

pull/625/head
Halil ibrahim Kalkan 6 years ago
parent 765183b7ad
commit ba7a9b61d3

@ -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")
);
}
}

Loading…
Cancel
Save