forked from NYANDEV/forgejo
Backport #18385
This commit is contained in:
parent
42991dc89a
commit
b68e605d56
1 changed files with 3 additions and 4 deletions
|
@ -150,13 +150,12 @@ export function initUserAuthWebAuthnRegister() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!detectWebAuthnSupport()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('#webauthn-error').modal({allowMultiple: false});
|
||||
$('#register-webauthn').on('click', (e) => {
|
||||
e.preventDefault();
|
||||
if (!detectWebAuthnSupport()) {
|
||||
return;
|
||||
}
|
||||
webAuthnRegisterRequest();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue