1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Update success route before navigate action (#208)

This commit is contained in:
Vincent Salucci
2020-11-22 08:46:56 -06:00
committed by GitHub
parent 9e4d000b4d
commit d9d13bbf0e

View File

@@ -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,