1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

Restructure handAuthResult to ensure we redirect to vault.

This commit is contained in:
Alec Rippberger
2024-10-09 14:01:01 -05:00
parent 6e337e1e7d
commit 47ce605e77

View File

@@ -249,16 +249,16 @@ export class LoginComponent implements OnInit, OnDestroy {
} }
// If none of the above cases are true, proceed with login... // If none of the above cases are true, proceed with login...
// ...on Web
if (this.clientType === ClientType.Web) { if (this.clientType === ClientType.Web) {
await this.goAfterLogIn(authResult.userId); await this.goAfterLogIn(authResult.userId);
// ...on Browser/Desktop }
} else if (this.clientType === ClientType.Browser) {
this.loginEmailService.clearValues(); this.loginEmailService.clearValues();
if (this.clientType === ClientType.Browser) {
await this.router.navigate(["/tabs/vault"]); await this.router.navigate(["/tabs/vault"]);
} else { } else {
await this.router.navigate(["vault"]); await this.router.navigate(["vault"]);
this.loginEmailService.clearValues();
} }
} }