mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-09 05:57:40 +02:00
28de9439be
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
76 lines
3.2 KiB
TypeScript
76 lines
3.2 KiB
TypeScript
import { Component, NgZone } from "@angular/core";
|
|
import { Router } from "@angular/router";
|
|
|
|
import { LockComponent as BaseLockComponent } from "@bitwarden/angular/auth/components/lock.component";
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
import { VaultTimeoutSettingsService } from "@bitwarden/common/abstractions/vault-timeout/vault-timeout-settings.service";
|
|
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vault-timeout/vault-timeout.service";
|
|
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
|
import { InternalPolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
|
import { DeviceTrustCryptoServiceAbstraction } from "@bitwarden/common/auth/abstractions/device-trust-crypto.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 { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.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 { PasswordStrengthServiceAbstraction } from "@bitwarden/common/tools/password-strength";
|
|
import { DialogService } from "@bitwarden/components";
|
|
|
|
@Component({
|
|
selector: "app-lock",
|
|
templateUrl: "lock.component.html",
|
|
})
|
|
export class LockComponent extends BaseLockComponent {
|
|
constructor(
|
|
router: Router,
|
|
i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
messagingService: MessagingService,
|
|
cryptoService: CryptoService,
|
|
vaultTimeoutService: VaultTimeoutService,
|
|
vaultTimeoutSettingsService: VaultTimeoutSettingsService,
|
|
environmentService: EnvironmentService,
|
|
stateService: StateService,
|
|
apiService: ApiService,
|
|
logService: LogService,
|
|
ngZone: NgZone,
|
|
policyApiService: PolicyApiServiceAbstraction,
|
|
policyService: InternalPolicyService,
|
|
passwordStrengthService: PasswordStrengthServiceAbstraction,
|
|
dialogService: DialogService,
|
|
deviceTrustCryptoService: DeviceTrustCryptoServiceAbstraction,
|
|
userVerificationService: UserVerificationService,
|
|
) {
|
|
super(
|
|
router,
|
|
i18nService,
|
|
platformUtilsService,
|
|
messagingService,
|
|
cryptoService,
|
|
vaultTimeoutService,
|
|
vaultTimeoutSettingsService,
|
|
environmentService,
|
|
stateService,
|
|
apiService,
|
|
logService,
|
|
ngZone,
|
|
policyApiService,
|
|
policyService,
|
|
passwordStrengthService,
|
|
dialogService,
|
|
deviceTrustCryptoService,
|
|
userVerificationService,
|
|
);
|
|
}
|
|
|
|
async ngOnInit() {
|
|
await super.ngOnInit();
|
|
this.onSuccessfulSubmit = async () => {
|
|
this.router.navigateByUrl(this.successRoute);
|
|
};
|
|
}
|
|
}
|