mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-23 21:31:29 +01:00
handle post-login routing on Browser/Desktop
This commit is contained in:
parent
00a29b3795
commit
3636c72741
@ -166,9 +166,22 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
this.loginEmailService.clearValues();
|
||||
await this.router.navigate(["update-temp-password"]);
|
||||
} else {
|
||||
// TODO-rr-bw: handle desktop specific
|
||||
// TODO-rr-bw: handle browser specific
|
||||
|
||||
// Web specific (start)
|
||||
await this.goAfterLogIn(response.userId);
|
||||
// Web specific (end)
|
||||
|
||||
// Browser/Desktop (start)
|
||||
this.loginEmailService.clearValues();
|
||||
|
||||
if (this.clientType === ClientType.Browser) {
|
||||
await this.router.navigate(["/tabs/vault"]);
|
||||
} else {
|
||||
await this.router.navigate(["vault"]);
|
||||
}
|
||||
// Browser/Desktop (end)
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user