2018-04-04 16:08:30 +02:00
|
|
|
import * as template from './two-factor.component.html';
|
|
|
|
|
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
import { ToasterService } from 'angular2-toaster';
|
|
|
|
import { Angulartics2 } from 'angulartics2';
|
|
|
|
|
|
|
|
import { ApiService } from 'jslib/abstractions/api.service';
|
|
|
|
import { AuthService } from 'jslib/abstractions/auth.service';
|
2018-04-04 22:29:43 +02:00
|
|
|
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
2018-04-04 16:08:30 +02:00
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|
|
|
import { SyncService } from 'jslib/abstractions/sync.service';
|
|
|
|
|
|
|
|
import { TwoFactorComponent as BaseTwoFactorComponent } from 'jslib/angular/components/two-factor.component';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-two-factor',
|
|
|
|
template: template,
|
|
|
|
})
|
|
|
|
export class TwoFactorComponent extends BaseTwoFactorComponent {
|
|
|
|
constructor(authService: AuthService, router: Router,
|
|
|
|
analytics: Angulartics2, toasterService: ToasterService,
|
|
|
|
i18nService: I18nService, apiService: ApiService,
|
2018-04-04 22:29:43 +02:00
|
|
|
platformUtilsService: PlatformUtilsService, syncService: SyncService,
|
|
|
|
environmentService: EnvironmentService) {
|
2018-04-04 16:08:30 +02:00
|
|
|
super(authService, router, analytics, toasterService, i18nService, apiService,
|
2018-04-04 22:29:43 +02:00
|
|
|
platformUtilsService, syncService, window, environmentService);
|
2018-04-04 16:08:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
anotherMethod() {
|
|
|
|
this.router.navigate(['2fa-options']);
|
|
|
|
}
|
|
|
|
}
|