From d9d13bbf0e2b5b6d93459f3eca22c65c00543716 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Sun, 22 Nov 2020 08:46:56 -0600 Subject: [PATCH] Update success route before navigate action (#208) --- src/angular/components/two-factor.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/angular/components/two-factor.component.ts b/src/angular/components/two-factor.component.ts index 709ce2d4db..0221bceede 100644 --- a/src/angular/components/two-factor.component.ts +++ b/src/angular/components/two-factor.component.ts @@ -197,12 +197,12 @@ export class TwoFactorComponent implements OnInit, OnDestroy { this.onSuccessfulLogin(); } this.platformUtilsService.eventTrack('Logged In From Two-step'); + if (response.resetMasterPassword) { + this.successRoute = 'set-password'; + } if (this.onSuccessfulLoginNavigate != null) { this.onSuccessfulLoginNavigate(); } else { - if (response.resetMasterPassword) { - this.successRoute = 'set-password'; - } this.router.navigate([this.successRoute], { queryParams: { identifier: this.identifier,