0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-08 06:30:05 +00:00

Add form double submit protection when registering a WebAuthn key

This commit is contained in:
Pēteris Caune 2023-02-20 11:05:55 +02:00
parent 04c9398da3
commit e2e289da2a
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
- Fix a race condition in Check.ping method
- Fix the SameSite and Secure attributes on the "auto-login" cookie
- Fix the "Test" button in the Integrations screen for read-only users
- Add form double submit protection when registering a WebAuthn key
## v2.6.1 - 2023-01-26

View file

@ -32,4 +32,9 @@ $(function() {
$("#name-next").click(requestCredentials);
$("#retry").click(requestCredentials);
// Disable the submit button to prevent double submission
$("#add-credential-form").submit(function() {
$("#add-credential-submit").prop("disabled", true);
});
});