mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
default use for encryption on (#7447)
This commit is contained in:
@@ -44,7 +44,7 @@ export class CreateCredentialDialogComponent implements OnInit {
|
|||||||
}),
|
}),
|
||||||
credentialNaming: this.formBuilder.group({
|
credentialNaming: this.formBuilder.group({
|
||||||
name: ["", Validators.maxLength(50)],
|
name: ["", Validators.maxLength(50)],
|
||||||
useForEncryption: [false],
|
useForEncryption: [true],
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -137,7 +137,10 @@ export class CreateCredentialDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let keySet: PrfKeySet | undefined;
|
let keySet: PrfKeySet | undefined;
|
||||||
if (this.formGroup.value.credentialNaming.useForEncryption) {
|
if (
|
||||||
|
this.pendingCredential.supportsPrf &&
|
||||||
|
this.formGroup.value.credentialNaming.useForEncryption
|
||||||
|
) {
|
||||||
keySet = await this.webauthnService.createKeySet(this.pendingCredential);
|
keySet = await this.webauthnService.createKeySet(this.pendingCredential);
|
||||||
|
|
||||||
if (keySet === undefined) {
|
if (keySet === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user