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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user