mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Fix client navigation after login.
This commit is contained in:
@@ -268,14 +268,12 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
if (this.clientType === ClientType.Web) {
|
if (this.clientType === ClientType.Web) {
|
||||||
// ...on Browser/Desktop
|
// ...on Browser/Desktop
|
||||||
await this.goAfterLogIn(authResult.userId);
|
await this.goAfterLogIn(authResult.userId);
|
||||||
} else {
|
} else if (this.clientType === ClientType.Browser) {
|
||||||
if (this.clientType === ClientType.Browser) {
|
this.loginEmailService.clearValues();
|
||||||
await this.router.navigate(["/tabs/vault"]);
|
await this.router.navigate(["/tabs/vault"]);
|
||||||
} else {
|
|
||||||
await this.router.navigate(["vault"]); // Desktop
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await this.router.navigate(["vault"]);
|
||||||
this.loginEmailService.clearValues();
|
this.loginEmailService.clearValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user