minor refactor to use destructuring
This commit is contained in:
parent
0f62f07cf2
commit
8c786622e3
|
@ -138,7 +138,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
submit = async (): Promise<void> => {
|
submit = async (): Promise<void> => {
|
||||||
const data = this.formGroup.value;
|
const { email, masterPassword } = this.formGroup.value;
|
||||||
|
|
||||||
await this.setupCaptcha();
|
await this.setupCaptcha();
|
||||||
|
|
||||||
|
@ -163,8 +163,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
const credentials = new PasswordLoginCredentials(
|
const credentials = new PasswordLoginCredentials(
|
||||||
data.email,
|
email,
|
||||||
data.masterPassword,
|
masterPassword,
|
||||||
this.captchaToken,
|
this.captchaToken,
|
||||||
null,
|
null,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue