Update success route before navigate action (#208)
This commit is contained in:
parent
9e4d000b4d
commit
d9d13bbf0e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue