git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
3c4b005
Branches
Tags
master
ticket
webinterface.git
modules
loginsecurity
passkey_loginpage.js
merge passkeys feature
Bernd Wurst
commited
3c4b005
at 2023-12-07 11:23:52
passkey_loginpage.js
Blame
History
Raw
function passkey_login() { passkey_validate(true); } async function check_passkey() { if (window.PublicKeyCredential && PublicKeyCredential.isConditionalMediationAvailable) { const newButton = document.createElement('button'); newButton.textContent = 'Mit Passkey/FIDO2-Gerät anmelden!'; const newPara = document.createElement('p'); newPara.appendChild(newButton) certlogin = document.getElementById("certlogin") certlogin.parentNode.insertBefore(newPara, certlogin) newButton.addEventListener('click', passkey_login); } } ready(() => { check_passkey(); });