1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

supports duo platform util

This commit is contained in:
Kyle Spearrin
2018-05-16 15:30:28 -04:00
parent e6fde2e92b
commit cf5bce1ea9
3 changed files with 8 additions and 2 deletions

View File

@@ -127,7 +127,8 @@ export class AuthService {
return providers;
}
if (this.twoFactorProviders.has(TwoFactorProviderType.OrganizationDuo)) {
if (this.twoFactorProviders.has(TwoFactorProviderType.OrganizationDuo) &&
this.platformUtilsService.supportsDuo()) {
providers.push(TwoFactorProviders[TwoFactorProviderType.OrganizationDuo]);
}
@@ -139,7 +140,7 @@ export class AuthService {
providers.push(TwoFactorProviders[TwoFactorProviderType.Yubikey]);
}
if (this.twoFactorProviders.has(TwoFactorProviderType.Duo)) {
if (this.twoFactorProviders.has(TwoFactorProviderType.Duo) && this.platformUtilsService.supportsDuo()) {
providers.push(TwoFactorProviders[TwoFactorProviderType.Duo]);
}