From 08261842e0535959c7503b57e9c29b30d3583417 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:25:27 -0700 Subject: [PATCH] refactor to handleAuthResult() method --- libs/auth/src/angular/login/login.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 061604ce26d..d025e7f1566 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -177,7 +177,10 @@ export class LoginComponentV2 implements OnInit, OnDestroy { const authResult = await this.loginStrategyService.logIn(credentials); await this.saveEmailSettings(); + await this.handleAuthResult(authResult); + }; + private async handleAuthResult(authResult: AuthResult): Promise { if (this.handleCaptchaRequired(authResult)) { return; } @@ -224,7 +227,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy { await this.router.navigate(["vault"]); // Desktop } } - }; + } protected async goAfterLogIn(userId: UserId): Promise { const masterPassword = this.formGroup.value.masterPassword;