Allow to register Webauthn Keys

This commit is contained in:
Jan Böhmer 2022-10-04 00:08:58 +02:00
parent 068daeda75
commit ac978abe1d
11 changed files with 486 additions and 25 deletions

View file

@ -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
});
}