1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-30 15:13:22 +00:00

Tweak naming of twoFactorService interface

This commit is contained in:
Thomas Rittson
2021-12-17 20:13:01 +10:00
parent 8b7f20479e
commit 33f5ac822d
4 changed files with 9 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.se
import { PolicyService } from "jslib-common/abstractions/policy.service";
import { StateService } from "jslib-common/abstractions/state.service";
import { SyncService } from "jslib-common/abstractions/sync.service";
import { TwoFactorService } from "jslib-common/abstractions/twoFactor.service";
import { Response } from "../models/response";
@@ -58,7 +59,8 @@ export class LoginCommand {
protected policyService: PolicyService,
clientId: string,
private syncService: SyncService,
protected keyConnectorService: KeyConnectorService
protected keyConnectorService: KeyConnectorService,
protected twoFactorService: TwoFactorService
) {
this.clientId = clientId;
}
@@ -230,7 +232,7 @@ export class LoginCommand {
}
if (response.twoFactor) {
let selectedProvider: any = null;
const twoFactorProviders = this.authService.getSupportedTwoFactorProviders(null);
const twoFactorProviders = this.twoFactorService.getSupportedProviders(null);
if (twoFactorProviders.length === 0) {
return Response.badRequest("No providers available for this client.");
}