2022-09-27 00:26:10 +02:00
|
|
|
import { Component, OnDestroy, OnInit } from "@angular/core";
|
|
|
|
import { Router } from "@angular/router";
|
|
|
|
|
2023-02-05 16:57:21 +01:00
|
|
|
import { LoginWithDeviceComponent as BaseLoginWithDeviceComponent } from "@bitwarden/angular/components/login-with-device.component";
|
2022-09-27 00:26:10 +02:00
|
|
|
import { AnonymousHubService } from "@bitwarden/common/abstractions/anonymousHub.service";
|
|
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
|
|
import { AppIdService } from "@bitwarden/common/abstractions/appId.service";
|
|
|
|
import { AuthService } from "@bitwarden/common/abstractions/auth.service";
|
|
|
|
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
|
|
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
|
|
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
|
|
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
|
|
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
2022-11-11 20:15:45 +01:00
|
|
|
import { LoginService } from "@bitwarden/common/abstractions/login.service";
|
2022-09-27 00:26:10 +02:00
|
|
|
import { PasswordGenerationService } from "@bitwarden/common/abstractions/passwordGeneration.service";
|
|
|
|
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
2022-10-21 21:03:14 +02:00
|
|
|
import { ValidationService } from "@bitwarden/common/abstractions/validation.service";
|
2022-09-27 00:26:10 +02:00
|
|
|
|
2022-11-11 20:15:45 +01:00
|
|
|
import { StateService } from "../../core/state/state.service";
|
|
|
|
|
2022-09-27 00:26:10 +02:00
|
|
|
@Component({
|
|
|
|
selector: "app-login-with-device",
|
|
|
|
templateUrl: "login-with-device.component.html",
|
|
|
|
})
|
|
|
|
export class LoginWithDeviceComponent
|
2023-02-05 16:57:21 +01:00
|
|
|
extends BaseLoginWithDeviceComponent
|
2022-09-27 00:26:10 +02:00
|
|
|
implements OnInit, OnDestroy
|
|
|
|
{
|
|
|
|
constructor(
|
2023-02-05 16:57:21 +01:00
|
|
|
router: Router,
|
|
|
|
cryptoService: CryptoService,
|
|
|
|
cryptoFunctionService: CryptoFunctionService,
|
|
|
|
appIdService: AppIdService,
|
|
|
|
passwordGenerationService: PasswordGenerationService,
|
|
|
|
apiService: ApiService,
|
|
|
|
authService: AuthService,
|
|
|
|
logService: LogService,
|
2022-09-27 00:26:10 +02:00
|
|
|
environmentService: EnvironmentService,
|
|
|
|
i18nService: I18nService,
|
|
|
|
platformUtilsService: PlatformUtilsService,
|
2023-02-05 16:57:21 +01:00
|
|
|
anonymousHubService: AnonymousHubService,
|
|
|
|
validationService: ValidationService,
|
|
|
|
stateService: StateService,
|
|
|
|
loginService: LoginService
|
2022-09-27 00:26:10 +02:00
|
|
|
) {
|
2023-02-05 16:57:21 +01:00
|
|
|
super(
|
|
|
|
router,
|
|
|
|
cryptoService,
|
|
|
|
cryptoFunctionService,
|
|
|
|
appIdService,
|
|
|
|
passwordGenerationService,
|
|
|
|
apiService,
|
|
|
|
authService,
|
|
|
|
logService,
|
|
|
|
environmentService,
|
|
|
|
i18nService,
|
|
|
|
platformUtilsService,
|
|
|
|
anonymousHubService,
|
|
|
|
validationService,
|
|
|
|
stateService,
|
|
|
|
loginService
|
2022-09-27 00:26:10 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|