healthchecks_healthchecks/static
Pēteris Caune 18585d163d
Improve double-submit prevention in the TOTP form
Chrome users could submit the form multiple time by entering the TOTP
code and then pressing Enter key, or clicking the onscreen submit
button. This would be less likely on low latency connections (because
auto-submit would complete before the user presses Enter key) but quite
doable on high latency connections.

The fix is to attach an event handler to form's "onsubmit" events.
The handler lets the first event through, and call preventDefault()
on subsequent events. This takes care of:

* programmatic submits by calling form.requestSubmit()
* Enter key in an input field
* click on the onscreen submit button
2025-03-14 10:43:58 +02:00
..
css Add GitHub icon in the icon font 2025-02-25 13:14:47 +02:00
fonts Add GitHub icon in the icon font 2025-02-25 13:14:47 +02:00
img Add GitHub Issues integration (WIP) 2025-02-24 16:24:17 +02:00
js Improve double-submit prevention in the TOTP form 2025-03-14 10:43:58 +02:00