Skip to content

Commit

Permalink
Merge pull request #298 from silinternational/feature/fix-webauthn-pr…
Browse files Browse the repository at this point in the history
…ompt

Fix WebAuthn prompt
  • Loading branch information
forevermatt authored Dec 2, 2024
2 parents a768da3 + de3da9a commit 2ace687
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
function offerRetry() {
const retryButton = document.querySelector('.mdl-button.mdl-color-text--red');
const retryButton = document.getElementById('retryButton');
retryButton.classList.remove('hide');
}
Expand All @@ -63,9 +63,10 @@
return input;
}
document.getElementById('showBtn').addEventListener('click', verifyWebAuthn);
document.querySelector('body').addEventListener('load', verifyWebAuthn);
document.getElementById('retryButton').addEventListener('click', verifyWebAuthn);
verifyWebAuthn();
});
</script>
</head>
Expand Down Expand Up @@ -121,7 +122,7 @@
<span flex></span>
<!-- used type=button to avoid form submission on click -->
<button
id="showBtn"
id="retryButton"
type="button"
class="mdl-button mdl-color-text--red {{ error_message is empty ? 'hide' : 'show' }}"
>
Expand Down

0 comments on commit 2ace687

Please sign in to comment.