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:
parent
04c9398da3
commit
e2e289da2a
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue