import { Component } from '@angular/core' ; import { Observable } from 'rxjs' ; import { map , take , throttleTime } from 'rxjs/operators' ; import { MultiFactorAuthService } from '../../services/multi-factor-auth-service' ; import { AbstractMFAFormComponent } from '../abstract/abstract-mfa-form.component' ; /**
 * MFA input form for TOTP recovery.
 */ @ Component ( { selector : 'm-multiFactorAuth__totpRecovery' , templateUrl : './recovery-code.component.html' , styleUrls : [ '../mfa-panel.component.ng.scss' ] , } ) export class MultiFactorAuthTOTPRecoveryComponent extends AbstractMFAFormComponent { constructor ( public service ) { super ( service ) ; } returns { void } public onVerifyClick ( ) { this . service . validateRecoveryCode ( this . code ) ; } }