mirror of
https://github.com/bitwarden/browser
synced 2025-01-23 17:53:31 +01:00
default use for encryption on (#7447)
This commit is contained in:
parent
5328ffb349
commit
8e46ef1ae5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user