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.onSuccessfulLogin();
|
||||||
}
|
}
|
||||||
this.platformUtilsService.eventTrack('Logged In From Two-step');
|
this.platformUtilsService.eventTrack('Logged In From Two-step');
|
||||||
if (this.onSuccessfulLoginNavigate != null) {
|
|
||||||
this.onSuccessfulLoginNavigate();
|
|
||||||
} else {
|
|
||||||
if (response.resetMasterPassword) {
|
if (response.resetMasterPassword) {
|
||||||
this.successRoute = 'set-password';
|
this.successRoute = 'set-password';
|
||||||
}
|
}
|
||||||
|
if (this.onSuccessfulLoginNavigate != null) {
|
||||||
|
this.onSuccessfulLoginNavigate();
|
||||||
|
} else {
|
||||||
this.router.navigate([this.successRoute], {
|
this.router.navigate([this.successRoute], {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
identifier: this.identifier,
|
identifier: this.identifier,
|
||||||
|
|
Loading…
Reference in New Issue