mirror of
https://github.com/bitwarden/browser
synced 2025-12-24 04:04:24 +00:00
[PM-25609] use password health service (#16482)
* isValidCipher and findWeakPasswordDetails * auditPasswordLeaks$ * missing deps fix * refactor: remove unused dependencies from RiskInsightsReportService - Remove PasswordStrengthServiceAbstraction and AuditService from constructor - Update module dependency injection to only provide these services to PasswordHealthService - Remove unused imports and mock services from test file - Ensure proper separation of concerns where password health logic is centralized in PasswordHealthService
This commit is contained in:
@@ -5,6 +5,8 @@ import { CriticalAppsService } from "@bitwarden/bit-common/dirt/reports/risk-ins
|
||||
import {
|
||||
CriticalAppsApiService,
|
||||
MemberCipherDetailsApiService,
|
||||
PasswordHealthService,
|
||||
RiskInsightsApiService,
|
||||
RiskInsightsDataService,
|
||||
RiskInsightsReportService,
|
||||
} from "@bitwarden/bit-common/dirt/reports/risk-insights/services";
|
||||
@@ -29,13 +31,22 @@ import { RiskInsightsComponent } from "./risk-insights.component";
|
||||
provide: MemberCipherDetailsApiService,
|
||||
deps: [ApiService],
|
||||
},
|
||||
{
|
||||
provide: PasswordHealthService,
|
||||
deps: [PasswordStrengthServiceAbstraction, AuditService],
|
||||
},
|
||||
{
|
||||
provide: RiskInsightsApiService,
|
||||
deps: [ApiService],
|
||||
},
|
||||
{
|
||||
provide: RiskInsightsReportService,
|
||||
deps: [
|
||||
PasswordStrengthServiceAbstraction,
|
||||
AuditService,
|
||||
CipherService,
|
||||
MemberCipherDetailsApiService,
|
||||
RiskInsightsApiService,
|
||||
RiskInsightsEncryptionService,
|
||||
PasswordHealthService,
|
||||
],
|
||||
},
|
||||
safeProvider({
|
||||
|
||||
Reference in New Issue
Block a user