Skip to content

Commit

Permalink
fixes for two factor aot compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
asadsahi committed Nov 20, 2017
1 parent f2b1b81 commit a3922a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
</li>
</ol>

<appc-reset-authenticator (reset)="onReset($event)"></appc-reset-authenticator>
<appc-reset-authenticator (reset)="onReset()"></appc-reset-authenticator>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare var QRCode: any;
})
export class EnableAuthenticatorComponent implements OnInit {

public verifyCode: string;
@ViewChild('qrcode') private qrCode: ElementRef;
public model: IEnableAuthenticatorModel;
constructor(private dataService: DataService) { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, Input } from '@angular/core';
import { DataService, NotificationsService } from '@app/core';

@Component({
Expand All @@ -7,6 +7,7 @@ import { DataService, NotificationsService } from '@app/core';
styleUrls: ['./recovery-codes.component.scss']
})
export class RecoveryCodesComponent implements OnInit {
@Input() model: ITwoFactorModel;

constructor(private dataService: DataService, private ns: NotificationsService) { }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1>Highly EXPERIMENTAL Feature: </h1>

{{model | json}}

<appc-recovery-codes *ngIf="model?.is2faEnabled"></appc-recovery-codes>
<appc-recovery-codes [model]="model" *ngIf="model?.is2faEnabled"></appc-recovery-codes>

<h5>Authenticator app</h5>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DataService } from '@app/core';
})
export class TwoFactorAuthComponent implements OnInit {

public enableAuthenticator: boolean;
public model: ITwoFactorModel;
constructor(private dataService: DataService) { }

Expand Down

0 comments on commit a3922a8

Please sign in to comment.