1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-26 10:35:48 +02:00

default use for encryption on (#7447)

This commit is contained in:
Jake Fink 2024-01-04 12:34:39 -05:00 committed by GitHub
parent 5328ffb349
commit 8e46ef1ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export class CreateCredentialDialogComponent implements OnInit {
}),
credentialNaming: this.formBuilder.group({
name: ["", Validators.maxLength(50)],
useForEncryption: [false],
useForEncryption: [true],
}),
});
@ -137,7 +137,10 @@ export class CreateCredentialDialogComponent implements OnInit {
}
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);
if (keySet === undefined) {