mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Allow to register Webauthn Keys
This commit is contained in:
parent
068daeda75
commit
ac978abe1d
11 changed files with 486 additions and 25 deletions
|
@ -117,11 +117,7 @@ class WebauthnTFA {
|
|||
constructor()
|
||||
{
|
||||
const register_dom_ready = (fn) => {
|
||||
if (document.readyState !== 'loading') {
|
||||
fn();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', fn);
|
||||
}
|
||||
document.addEventListener('turbo:load', fn)
|
||||
}
|
||||
|
||||
register_dom_ready(() => {
|
||||
|
@ -162,12 +158,6 @@ class WebauthnTFA {
|
|||
this.register(form, {publicKey: options});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Catch submit event and do webauthn stuff
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue