diff --git a/projects/v3/src/app/app.component.ts b/projects/v3/src/app/app.component.ts index a9513bf46..ea219f98d 100644 --- a/projects/v3/src/app/app.component.ts +++ b/projects/v3/src/app/app.component.ts @@ -35,6 +35,9 @@ export class AppComponent implements OnInit, OnDestroy { 'register', 'forgot_password', 'reset_password', + 'global_login', + 'direct_login', + 'do=secure', ]; constructor( diff --git a/projects/v3/src/app/pages/auth/auth-global-login/auth-global-login.component.ts b/projects/v3/src/app/pages/auth/auth-global-login/auth-global-login.component.ts index 515baacf6..2323031a1 100644 --- a/projects/v3/src/app/pages/auth/auth-global-login/auth-global-login.component.ts +++ b/projects/v3/src/app/pages/auth/auth-global-login/auth-global-login.component.ts @@ -25,7 +25,8 @@ export class AuthGlobalLoginComponent implements OnInit { async ngOnInit() { const apikey = this.route.snapshot.paramMap.get('apikey'); - const multipleStacks = this.route.snapshot.paramMap.get('multiple'); + const multipleStacks: string = this.route.snapshot.paramMap.get('multiple'); + if (!apikey) { return this._error(); } @@ -37,7 +38,7 @@ export class AuthGlobalLoginComponent implements OnInit { }); const homePath = ['v3', 'home']; - if (multipleStacks) { + if (multipleStacks === 'true') { this.storage.set('hasMultipleStacks', true); } if (environment.demo) { @@ -62,10 +63,10 @@ export class AuthGlobalLoginComponent implements OnInit { prod: [`/${locale}`, ...homePath], }); } - return this.navigate(homePath); } } catch (err) { + this._error(err); } } diff --git a/projects/v3/src/app/services/auth.service.ts b/projects/v3/src/app/services/auth.service.ts index 2fb838949..c465ae662 100644 --- a/projects/v3/src/app/services/auth.service.ts +++ b/projects/v3/src/app/services/auth.service.ts @@ -345,7 +345,7 @@ export class AuthService { this.storage.clear(); if (typeof redirect === 'object') { return this.router.navigate(redirect); - } else if (typeof redirect === 'boolean' && redirect === true) { + } else if (redirect === true) { // still store config info even logout this.storage.setConfig(config); return this.router.navigate(['/'], navigationParams);