mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
minor refactor to use destructuring
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user