refactor to handleAuthResult() method

This commit is contained in:
rr-bw 2024-09-10 14:25:27 -07:00
parent 9588148e48
commit 08261842e0
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 4 additions and 1 deletions

View File

@ -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<void> {
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<void> {
const masterPassword = this.formGroup.value.masterPassword;