diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 25fb249586..0d84a0f064 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -138,7 +138,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy { } submit = async (): Promise => { - const data = this.formGroup.value; + const { email, masterPassword } = this.formGroup.value; await this.setupCaptcha(); @@ -163,8 +163,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy { } const credentials = new PasswordLoginCredentials( - data.email, - data.masterPassword, + email, + masterPassword, this.captchaToken, null, );