We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227bb96 commit 625e98fCopy full SHA for 625e98f
two_factor/plugins/webauthn/templates/two_factor_webauthn/create_credential.js
@@ -20,7 +20,7 @@ navigator.credentials.create({
20
type: attestationCredential.type,
21
},
22
tokenField = document.querySelector('[name=webauthn-token]'),
23
- form = document.forms[0];
+ form = tokenField.closest('form');
24
25
tokenField.value = JSON.stringify(serializableAttestationCredential);
26
form.submit();
0 commit comments