patchh webauthn authenticate

main
n0emis 4 years ago
parent 942fe26c46
commit 896eb8565d
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -76,6 +76,12 @@
if (userVerification !== 'not specified') publicKey.userVerification = userVerification;
if (window.PublicKeyCredential === undefined || typeof window.PublicKeyCredential !== "function") {
$("#error").val("WebAuthn is not supported by this Browser");
$("#webauth").submit();
return;
}
navigator.credentials.get({publicKey})
.then((result) => {
window.result = result;

Loading…
Cancel
Save