|
|
@ -76,6 +76,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (userVerification !== 'not specified') publicKey.userVerification = userVerification;
|
|
|
|
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})
|
|
|
|
navigator.credentials.get({publicKey})
|
|
|
|
.then((result) => {
|
|
|
|
.then((result) => {
|
|
|
|
window.result = result;
|
|
|
|
window.result = result;
|
|
|
|