mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 18:51:48 +02:00
Backport #18385
This commit is contained in:
1 parent
42991dc89a
commit
b68e605d56
1 file changed
+3
-4
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user