mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 05:30:01 +00:00
Remove saveFormData and rely on saveFormDataWithPartialData only
This commit is contained in:
@@ -38,7 +38,12 @@
|
||||
/>
|
||||
<bit-form-control *ngIf="!hideRememberMe()">
|
||||
<bit-label>{{ "dontAskAgainOnThisDeviceFor30Days" | i18n }}</bit-label>
|
||||
<input type="checkbox" bitCheckbox formControlName="remember" (change)="saveFormData()" />
|
||||
<input
|
||||
type="checkbox"
|
||||
bitCheckbox
|
||||
formControlName="remember"
|
||||
(change)="saveFormDataWithPartialData({ remember: $event.target.checked })"
|
||||
/>
|
||||
</bit-form-control>
|
||||
|
||||
<app-two-factor-auth-webauthn
|
||||
|
||||
@@ -227,19 +227,6 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Save all current form data to the cache
|
||||
*/
|
||||
async saveFormData() {
|
||||
const formData: TwoFactorAuthComponentData = {
|
||||
token: this.tokenFormControl.value || undefined,
|
||||
remember: this.rememberFormControl.value ?? undefined,
|
||||
selectedProviderType: this.selectedProviderType,
|
||||
};
|
||||
|
||||
await this.saveFormDataWithPartialData(formData);
|
||||
}
|
||||
|
||||
private async setSelected2faProviderType() {
|
||||
const webAuthnSupported = this.platformUtilsService.supportsWebAuthn(this.win);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user