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

2fa recovery code view

This commit is contained in:
Kyle Spearrin
2018-06-28 09:40:11 -04:00
parent ff65297275
commit b9895ba79a
8 changed files with 99 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ import { ModalComponent } from '../modal.component';
import { TwoFactorAuthenticatorComponent } from './two-factor-authenticator.component';
import { TwoFactorDuoComponent } from './two-factor-duo.component';
import { TwoFactorEmailComponent } from './two-factor-email.component';
import { TwoFactorRecoveryComponent } from './two-factor-recovery.component';
import { TwoFactorU2fComponent } from './two-factor-u2f.component';
import { TwoFactorYubiKeyComponent } from './two-factor-yubikey.component';
@@ -120,6 +121,10 @@ export class TwoFactorSetupComponent implements OnInit {
}
}
recoveryCode() {
this.openModal(this.recoveryModalRef, TwoFactorRecoveryComponent);
}
private openModal<T>(ref: ViewContainerRef, type: Type<T>): T {
if (this.modal != null) {
this.modal.close();