Conversation
This reverts commit b1a9ddb.
There was a problem hiding this comment.
Pull Request Overview
This PR adds a user password history entity to the ABP Identity module to support password reuse prevention functionality.
Key changes:
- Introduces
IdentityUserPasswordHistoryentity to track user password history - Adds settings to configure password reuse prevention (enable/disable and count of previous passwords to check)
- Updates Entity Framework and MongoDB contexts to support the new entity
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
IAbpIdentityMongoDbContext.cs |
Adds MongoDB collection property for password histories |
AbpIdentityMongoDbContext.cs |
Implements MongoDB collection for password histories |
IdentityEfCoreQueryableExtensions.cs |
Includes password histories in user detail queries |
IdentityDbContextModelBuilderExtensions.cs |
Configures Entity Framework mapping for password history entity |
IdentityUserPasswordHistory.cs |
Defines the password history entity with user ID and password as composite key |
IdentityUser.cs |
Adds password history navigation property and helper method |
AbpIdentitySettingDefinitionProvider.cs |
Adds settings for password reuse prevention configuration |
AbpIdentityResultExtensions.cs |
Adds localization string for password reuse error message |
IdentitySettingNames.cs |
Defines setting names for password reuse prevention |
en.json |
Adds English localization for password reuse error message |
IdentityUserPasswordHistoriesConsts.cs |
Defines constants for password history entity |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserPasswordHistory.cs
Outdated
Show resolved
Hide resolved
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserPasswordHistory.cs
Outdated
Show resolved
Hide resolved
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserPasswordHistory.cs
Show resolved
Hide resolved
…y/IdentityUserPasswordHistory.cs Co-authored-by: Copilot <[email protected]>
…y/IdentityUserPasswordHistory.cs Co-authored-by: Copilot <[email protected]>
Co-authored-by: maliming <[email protected]>
…ory-localization Add PasswordInHistory localization text to all language files
|
|
…guages Co-authored-by: maliming <[email protected]>
…ions for 12 languages Co-authored-by: maliming <[email protected]>
…e-prevention-localization Add password reuse prevention localization to all Identity module languages
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #23894 +/- ##
=======================================
Coverage 51.09% 51.09%
=======================================
Files 3269 3271 +2
Lines 106432 106500 +68
Branches 8173 8174 +1
=======================================
+ Hits 54379 54420 +41
- Misses 50379 50406 +27
Partials 1674 1674 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I marked as breaking change since it requires database migration. Please note that in the migration guide. |
No description provided.