Skip to content

Commit 580bf14

Browse files
committed
fix: identity password setting invalid
1 parent 81dc87f commit 580bf14

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

host/src/Sample.HttpApi.Host/Sample.HttpApi.Host.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<PackageReference Include="Volo.Abp.BackgroundWorkers.Hangfire" Version="$(AbpVersion)" />
2525
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="$(AbpVersion)" />
2626
<PackageReference Include="Passingwind.SwaggerExtensions" Version="0.5.0" />
27+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
2728
</ItemGroup>
2829

2930
<ItemGroup>

modules/identity/src/Passingwind.Abp.Identity.Domain/IdentitySettingsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public virtual async Task<IdentityPasswordSettings> GetPasswordSettingsAsync(Can
5959
{
6060
return new IdentityPasswordSettings()
6161
{
62-
ForceUsersToPeriodicallyChangePassword = (await GetSettingValueAsync<bool>(IdentitySettingNames.Password.RequireNonAlphanumeric)),
62+
ForceUsersToPeriodicallyChangePassword = (await GetSettingValueAsync<bool>(IdentitySettingNames.Password.ForceUsersToPeriodicallyChangePassword)),
6363
PasswordChangePeriodDays = (await GetSettingValueAsync<int>(IdentitySettingNames.Password.PasswordChangePeriodDays)),
6464
RequireDigit = (await GetSettingValueAsync<bool>(IdentitySettingNames.Password.RequireDigit)),
6565
RequiredLength = (await GetSettingValueAsync<int>(IdentitySettingNames.Password.RequiredLength)),

modules/identity/src/Passingwind.Abp.Identity.EntityFrameworkCore/EntityFrameworkCore/IdentityEntityFrameworkCoreModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public class IdentityEntityFrameworkCoreModule : AbpModule
1212
{
1313
public override void ConfigureServices(ServiceConfigurationContext context)
1414
{
15-
context.Services.AddAbpDbContext<IdentityDbContextV2>();
15+
context.Services.AddAbpDbContext<IdentityDbContextV2>(options => options.AddDefaultRepositories());
1616
}
1717
}

modules/identity/src/Passingwind.Abp.Identity.MongoDB/MongoDB/IdentityMongoDbModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public class IdentityMongoDbModule : AbpModule
1313
{
1414
public override void ConfigureServices(ServiceConfigurationContext context)
1515
{
16-
context.Services.AddMongoDbContext<IdentityMongoDbContextV2>(options => options.AddRepository<IdentityUserTwoFactor, IdentityUserTwoFactorRepository>());
16+
context.Services.AddMongoDbContext<IdentityMongoDbContextV2>(options => options.AddDefaultRepositories());
1717
}
1818
}

0 commit comments

Comments
 (0)