mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 04:27:02 +01:00
Automatically trigger passkeys on login view (#3307)
Add an on-load handler to pkhtml.js so that when the partial view is displayed passkey auth is automatically prompted for. If the users browser blocks this event, the fallback manual buttons still exist.
This commit is contained in:
parent
c59f560e50
commit
4f2eb8b5f8
|
@ -40,3 +40,8 @@ try {
|
|||
});
|
||||
} catch (_error) {};
|
||||
|
||||
try {
|
||||
window.addEventListener("load", (event) => {
|
||||
asskey_login()
|
||||
});
|
||||
} catch (_error) {};
|
||||
|
|
Loading…
Reference in a new issue