diff --git a/src/app/settings/two-factor-u2f.component.ts b/src/app/settings/two-factor-u2f.component.ts
index e32cf9d6..73bf93d3 100644
--- a/src/app/settings/two-factor-u2f.component.ts
+++ b/src/app/settings/two-factor-u2f.component.ts
@@ -22,6 +22,7 @@ import { TwoFactorBaseComponent } from './two-factor-base.component';
templateUrl: 'two-factor-u2f.component.html',
})
export class TwoFactorU2fComponent extends TwoFactorBaseComponent implements OnInit, OnDestroy {
+ type = TwoFactorProviderType.U2f;
u2fChallenge: any;
u2fError: boolean;
u2fListening: boolean;
@@ -34,8 +35,7 @@ export class TwoFactorU2fComponent extends TwoFactorBaseComponent implements OnI
constructor(apiService: ApiService, i18nService: I18nService,
analytics: Angulartics2, toasterService: ToasterService,
platformUtilsService: PlatformUtilsService) {
- super(apiService, i18nService, analytics, toasterService, platformUtilsService,
- TwoFactorProviderType.U2f);
+ super(apiService, i18nService, analytics, toasterService, platformUtilsService);
this.u2fScript = window.document.createElement('script');
this.u2fScript.src = 'scripts/u2f.js';
this.u2fScript.async = true;
diff --git a/src/app/settings/two-factor-verify.component.ts b/src/app/settings/two-factor-verify.component.ts
index 5d8ce40b..104dd9b1 100644
--- a/src/app/settings/two-factor-verify.component.ts
+++ b/src/app/settings/two-factor-verify.component.ts
@@ -20,10 +20,9 @@ import { PasswordVerificationRequest } from 'jslib/models/request/passwordVerifi
templateUrl: 'two-factor-verify.component.html',
})
export class TwoFactorVerifyComponent {
- @Input()
- type: TwoFactorProviderType;
- @Output()
- onAuthed = new EventEmitter
();
+ @Input() type: TwoFactorProviderType;
+ @Input() organizationId: string;
+ @Output() onAuthed = new EventEmitter();
masterPassword: string;
formPromise: Promise;
@@ -50,7 +49,12 @@ export class TwoFactorVerifyComponent {
this.formPromise = this.apiService.getTwoFactorRecover(request);
break;
case TwoFactorProviderType.Duo:
- this.formPromise = this.apiService.getTwoFactorDuo(request);
+ case TwoFactorProviderType.OrganizationDuo:
+ if (this.organizationId != null) {
+ this.formPromise = this.apiService.getTwoFactorOrganizationDuo(this.organizationId, request);
+ } else {
+ this.formPromise = this.apiService.getTwoFactorDuo(request);
+ }
break;
case TwoFactorProviderType.Email:
this.formPromise = this.apiService.getTwoFactorEmail(request);
diff --git a/src/app/settings/two-factor-yubikey.component.html b/src/app/settings/two-factor-yubikey.component.html
index fee8b3e2..3c41c8bb 100644
--- a/src/app/settings/two-factor-yubikey.component.html
+++ b/src/app/settings/two-factor-yubikey.component.html
@@ -10,7 +10,7 @@
×
-
+