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
No known key found for this signature in database
GPG Key ID: 9DD8DA583B28154A
1 changed files with 5 additions and 5 deletions

View File

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