mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Update success route before navigate action (#208)
This commit is contained in:
@@ -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 (response.resetMasterPassword) {
|
||||||
|
this.successRoute = 'set-password';
|
||||||
|
}
|
||||||
if (this.onSuccessfulLoginNavigate != null) {
|
if (this.onSuccessfulLoginNavigate != null) {
|
||||||
this.onSuccessfulLoginNavigate();
|
this.onSuccessfulLoginNavigate();
|
||||||
} else {
|
} else {
|
||||||
if (response.resetMasterPassword) {
|
|
||||||
this.successRoute = 'set-password';
|
|
||||||
}
|
|
||||||
this.router.navigate([this.successRoute], {
|
this.router.navigate([this.successRoute], {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
identifier: this.identifier,
|
identifier: this.identifier,
|
||||||
|
|||||||
Reference in New Issue
Block a user