1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

lock component to jslib

This commit is contained in:
Kyle Spearrin
2018-04-04 22:59:14 -04:00
parent d429cd2199
commit a0ca51dda4
2 changed files with 60 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
formPromise: Promise<any>;
emailPromise: Promise<any>;
protected loginRoute = 'login';
protected successRoute = 'vault';
constructor(protected authService: AuthService, protected router: Router,
@@ -51,7 +52,7 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
async ngOnInit() {
if (this.authService.email == null || this.authService.masterPasswordHash == null ||
this.authService.twoFactorProviders == null) {
this.router.navigate(['login']);
this.router.navigate([this.loginRoute]);
return;
}