handle post-login routing on Browser/Desktop

This commit is contained in:
rr-bw 2024-09-09 12:29:01 -07:00
parent 00a29b3795
commit 3636c72741
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 13 additions and 0 deletions

View File

@ -166,9 +166,22 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
this.loginEmailService.clearValues(); this.loginEmailService.clearValues();
await this.router.navigate(["update-temp-password"]); await this.router.navigate(["update-temp-password"]);
} else { } else {
// TODO-rr-bw: handle desktop specific
// TODO-rr-bw: handle browser specific
// Web specific (start) // Web specific (start)
await this.goAfterLogIn(response.userId); await this.goAfterLogIn(response.userId);
// Web specific (end) // 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)
} }
}; };