Restructure handAuthResult to ensure we redirect to vault.
This commit is contained in:
parent
6e337e1e7d
commit
47ce605e77
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue