mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-09 05:57:40 +02:00
ee690cd1ef
* Use account service for getting account profile data. * desktop build fixes * CLI build fixes * Remove state service methods
61 lines
2.6 KiB
TypeScript
61 lines
2.6 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { Router } from "@angular/router";
|
|
|
|
import { UpdatePasswordComponent as BaseUpdatePasswordComponent } from "@bitwarden/angular/auth/components/update-password.component";
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
|
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
|
import { KdfConfigService } from "@bitwarden/common/auth/abstractions/kdf-config.service";
|
|
import { InternalMasterPasswordServiceAbstraction } from "@bitwarden/common/auth/abstractions/master-password.service.abstraction";
|
|
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
|
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
|
import { DialogService } from "@bitwarden/components";
|
|
|
|
@Component({
|
|
selector: "app-update-password",
|
|
templateUrl: "update-password.component.html",
|
|
})
|
|
export class UpdatePasswordComponent extends BaseUpdatePasswordComponent {
|
|
constructor(
|
|
router: Router,
|
|
i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
passwordGenerationService: PasswordGenerationServiceAbstraction,
|
|
policyService: PolicyService,
|
|
cryptoService: CryptoService,
|
|
messagingService: MessagingService,
|
|
apiService: ApiService,
|
|
logService: LogService,
|
|
stateService: StateService,
|
|
userVerificationService: UserVerificationService,
|
|
dialogService: DialogService,
|
|
kdfConfigService: KdfConfigService,
|
|
masterPasswordService: InternalMasterPasswordServiceAbstraction,
|
|
accountService: AccountService,
|
|
) {
|
|
super(
|
|
router,
|
|
i18nService,
|
|
platformUtilsService,
|
|
passwordGenerationService,
|
|
policyService,
|
|
cryptoService,
|
|
messagingService,
|
|
apiService,
|
|
stateService,
|
|
userVerificationService,
|
|
logService,
|
|
dialogService,
|
|
kdfConfigService,
|
|
masterPasswordService,
|
|
accountService,
|
|
);
|
|
}
|
|
}
|