mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
* Added abstractions for PolicyApiService and PolicyService * Added implementations for PolicyApiService and PolicyService * Updated all references to new PolicyApiService and PolicyService * Deleted old PolicyService abstraction and implementation * Fixed CLI import path for policy.service * Fixed main.background.ts policyApiService dependency for policyService * Updated policy-api.service with the correct imports * [EC-376] Sorted methods order in PolicyApiService * [EC-376] Removed unused clearCache method from PolicyService * [EC-376] Added upsert method to PolicyService * [EC-376] PolicyApiService putPolicy method now upserts data to PolicyService
49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { Router } from "@angular/router";
|
|
|
|
import { UpdatePasswordComponent as BaseUpdatePasswordComponent } from "@bitwarden/angular/components/update-password.component";
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
import { PasswordGenerationService } from "@bitwarden/common/abstractions/passwordGeneration.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
import { PolicyService } from "@bitwarden/common/abstractions/policy/policy.service.abstraction";
|
|
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
import { UserVerificationService } from "@bitwarden/common/abstractions/userVerification.service";
|
|
|
|
@Component({
|
|
selector: "app-update-password",
|
|
templateUrl: "update-password.component.html",
|
|
})
|
|
export class UpdatePasswordComponent extends BaseUpdatePasswordComponent {
|
|
constructor(
|
|
router: Router,
|
|
i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
passwordGenerationService: PasswordGenerationService,
|
|
policyService: PolicyService,
|
|
cryptoService: CryptoService,
|
|
messagingService: MessagingService,
|
|
apiService: ApiService,
|
|
logService: LogService,
|
|
stateService: StateService,
|
|
userVerificationService: UserVerificationService
|
|
) {
|
|
super(
|
|
router,
|
|
i18nService,
|
|
platformUtilsService,
|
|
passwordGenerationService,
|
|
policyService,
|
|
cryptoService,
|
|
messagingService,
|
|
apiService,
|
|
stateService,
|
|
userVerificationService,
|
|
logService
|
|
);
|
|
}
|
|
}
|