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:
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user